Remove Duplicate Lines
Paste a list and remove repeated lines. Choose which copy to keep, ignore case, sort, filter by a word, see how often each line repeated, or compare two lists to find what is in one and not the other.
Free, no sign-up. Your list stays in your browser.
Your list
Paste a list to remove duplicate lines.
How to
Remove duplicates in three steps
Paste your list
Put one item on each line. Emails, keywords, URLs and names all work.
Set the options
Decide whether Apple and apple count as the same, whether extra spaces matter, and whether to drop blank lines.
Copy the clean list
The result and a count of removed lines appear straight away. Press Copy to use it.
Cleaning lists properly
- Turn on Trim if your list came from a spreadsheet. A trailing space makes two identical-looking lines different.
- Use Ignore case for email addresses and keywords, where Apple and apple are the same thing.
- Sort A to Z after removing duplicates if you want to scan the list quickly. Numbers inside text are sorted naturally, so item2 comes before item10.
- Keep a copy of the original. Removing lines cannot be undone once you replace your source.
FAQ
Duplicate lines questions
Which copy of a duplicate line is kept?
The first copy by default, in its original position. Choose "the last copy" if the newest entry matters more; the kept lines then stay in the order of their last appearance.
Does it treat Apple and apple as duplicates?
Only if you tick Ignore upper and lower case. By default they are different lines.
Why do two identical-looking lines survive?
Usually an invisible difference such as a trailing space or a different kind of space. Keep the Trim option on to ignore spaces at the ends of lines.
Can it handle a large list?
Yes. Lists of tens of thousands of lines are processed instantly in your browser, up to about one million characters.
Does it remove empty lines?
Tick Remove empty lines to drop them. Otherwise one empty line is kept, because the others are duplicates of it.
Is my list uploaded anywhere?
No. Everything happens in your browser and nothing is sent to a server.