Remove duplicate lines
Remove repeated lines while keeping their original order.
UTF-8 TXT or pasted text · up to 1 MB. Inputs stay in this tab.
How to use
- Remove repeated lines while keeping their original order.
- Enter your values and choose the options. Use the example below to check the result.
- Review the result; copy or download when available. Reset clears this tool.
Before you start
By default, comparison is case-sensitive and keeps spaces. Optional trimming changes comparison only; the first original line is retained.
apple / pear / apple → apple / pear (one item per line).