Remove Duplicate Lines
Clean up lists of emails, keywords, names or codes by removing repeated lines. The first occurrence of each line is kept in its original position.
About Remove Duplicate Lines
Remove Duplicate Lines goes through a list one line at a time and drops every line it has already seen. The first copy of each line stays where it was, so the order of your list does not change. A short summary tells you how many lines were removed and how many were kept.
It is useful when you merge lists from several sources: mailing lists exported from different tools, keyword lists from separate reports, product codes copied from two spreadsheets, or attendee names gathered from a few sign-up forms.
When to use it
- You combined three email exports and the same addresses appear more than once.
- A list of tags or keywords has repeats with different capitalisation.
- Log lines or error messages repeat and you want just the distinct ones.
- You pasted from a spreadsheet and picked up stray spaces and blank rows.
Worked example
Paste this seven-line list (line 3 starts with two spaces, line 4 is empty):
anna@example.com / Ben@example.com / anna@example.com / (empty) / ben@example.com / cara@example.com / Anna@Example.com
With the default settings (not case-sensitive, ignore spaces at line start and end, remove empty lines), the result is three lines: anna@example.com, Ben@example.com and cara@example.com. The note reads “4 lines removed, 3 kept”. Turn on Case-sensitive and ben@example.com and Anna@Example.com count as different, so you get “2 lines removed, 5 kept”.
Good to know
- The removed count includes empty lines, not only true duplicates.
- With “Ignore spaces at line start/end” on, the kept lines are also trimmed in the result. Turn it off to keep indentation exactly as typed.
- Spaces inside a line always matter:
New Yorkwith two spaces is different fromNew York. - When case is ignored, the first spelling wins. If
Ben@example.comcomes first, that is the version you keep. - Windows and old Mac line endings are converted to plain line breaks, and the result uses plain line breaks.
- To put the cleaned list in order, run it through Sort Lines next.
How to use Remove Duplicate Lines
- Paste your list, one item per line.
- Choose whether case and surrounding spaces matter.
- Select Remove duplicates and copy the result.
Privacy: how it works
Everything happens in your browser. Your text is not sent to any server.
Frequently asked questions
Does it change the order?
No. Lines stay in their original order; only later repeats are removed. Use Sort lines if you also want to sort.
Is there a size limit?
No fixed limit; lists with hundreds of thousands of lines work on most computers.