Remove duplicate lines
Paste a list, choose the options, and copy the cleaned lines.
Remove duplicate lines runs entirely in your browser: the text you paste is never sent to a server. It is free and needs no sign-up.
How to use it
- Paste your lines Paste one item per line into the box. The result and a summary of the line counts appear as soon as you type.
- Choose the options Tick Ignore upper and lower case, Skip blank lines, Ignore spaces at the start and end of each line, or Sort the result A to Z. All four start unticked.
- Copy the result Press Copy under the Result box. Unless you sort, each kept line stays in the position where it first appeared.
Questions
Does the result change the text of the lines it keeps?
No. A kept line is shown exactly as it was typed, including its case and spaces. Only the order can change, and only when you sort. When lines match, the first one is kept.
How does Ignore spaces at the start and end of each line work?
Lines are compared after leading and trailing spaces are trimmed, so two lines that differ only at their edges count as duplicates. The kept line still has its original spaces.