Duplicate Line Remover
Remove duplicate lines from a list and sort it alphabetically, with an optional case-sensitive mode. Useful for cleaning up an email list collected from multiple rounds, merging to-do lists, or deduplicating a pasted CSV column, instantly in your browser.
Usage examples
Cleaning up an email list collected from multiple rounds
When a list of email addresses gathered from several sources has the same address more than once, clean it up into a duplicate-free list in one pass.
Merging two to-do lists into one
Paste two lists together and run deduplication to combine them into a single list with no overlapping items.
Sorting a list of keywords alphabetically
Take a keyword or tag list collected in no particular order and get it both deduplicated and sorted alphabetically for an easy overview.
Cleaning up a CSV column pasted as plain text
Pasted a single column of customer names exported from a spreadsheet and some rows repeat? Paste the column here with one name per line to strip out the repeats before reimporting it.
Removing blank lines left over from a copy-paste
Copied a list from a PDF or webpage and it came with scattered empty lines between entries? Turn on "Remove empty lines" to collapse it into a clean, gap-free list.
Frequently asked questions
Is the list I enter sent to a server?
No. Processing happens entirely in your browser, and what you enter is never sent to a server.
What does the case-sensitive option change?
Off, "Apple" and "apple" are treated as the same line and only one survives. On, two lines differing only in case are treated as distinct and both are kept.
Why does the line order change?
With sort set to "Keep original order", lines stay in the order they first appeared. Choosing ascending or descending re-sorts them alphabetically instead.
Why would I need to trim whitespace?
A pasted list can have invisible leading or trailing spaces on some lines, making lines that look identical actually count as different. Turning this on ignores that difference for an accurate comparison.
Which copy of a duplicate line gets kept?
The first occurrence is kept and later repeats are dropped, unless you choose an ascending or descending sort, in which case the surviving lines are reordered alphabetically afterward.
What happens if I leave "Remove empty lines" off?
Blank lines are treated like any other line: if there are several in a row, they're deduplicated down to a single blank line unless case-sensitive and trim settings say otherwise. Turn the option on if you'd rather drop them entirely.
Can I use this to find out how many duplicates were in my original list?
Yes. The result shows a total count and how many duplicate lines were removed, so you can see at a glance how much overlap your original list had.