Remove Duplicate Lines
Paste a list to remove repeated lines. The first occurrence of each line is kept in its original position, and you can choose how strictly lines are compared.
Unique lines
How to remove duplicate lines
- Paste your list, one item per line.
- Choose whether comparison ignores case and surrounding whitespace.
- See how many duplicates were removed.
- Copy or download the unique lines.
Frequently asked questions
Which copy of a duplicate is kept?
The first one, in its original position. Later repeats are removed. Turn on Sort result if you want the unique lines in alphabetical order.
Are empty lines treated as duplicates?
By default repeated empty lines are removed like any other duplicate. Turn on Remove empty lines to drop all of them.
Related tools
- Sort LinesSort lines alphabetically, numerically or in reverse.
- Whitespace CleanerTrim lines, collapse spaces and normalise line endings.
- Text Diff CheckerCompare two texts side by side or inline.
More in Text Tools.