Remove Duplicate Lines
Paste any list or text and duplicate lines are removed as you type. Choose which copy to keep, whether letter case and stray spaces count, and sort the cleaned result if you want. Runs entirely in your browser — nothing is uploaded.
The cleaned text will appear here.
How to use this
Paste your list into the box on the left — email addresses, keywords, product codes, names, log lines, anything with one item per line. The result updates as you type, and the counter under it shows exactly how many lines went in, how many duplicates were removed, and how many lines remain. Copy the result or download it as a text file.
When is a line a "duplicate"?
That depends on your list, which is why the options exist. By default the tool compares lines after trimming stray spaces from the ends, so "apple " and "apple" count as the same line — but capital letters still matter, so "Apple" and "apple" are kept as two different lines. Turn case sensitivity off if you are cleaning something like a keyword or email list where case should not matter. And if the same item appears in several places and only its last position is correct — say, the newest entry in a log — switch "keep" to the last occurrence instead of the first.
Common jobs this is used for: merging two mailing lists without double-sending, cleaning exported keywords before uploading them to an ads account, deduplicating product SKUs, tidying word lists, survey responses and scraped data, and removing repeated lines from log files before analysing them.
Frequently asked questions
How do I remove duplicate lines from a list?
Paste your text into the box — one item per line — and the duplicates are removed as you type. Copy the result or download it as a .txt file.
Can I keep the last occurrence instead of the first?
Yes. Set 'When a line repeats, keep' to 'The last occurrence' — useful for logs and lists where the newest entry is the correct one.
Does capitalisation matter — is 'Apple' a duplicate of 'apple'?
Only if you want it to be. Case sensitivity is on by default; turn it off and 'Apple', 'apple' and 'APPLE' are treated as the same line.
What about lines that differ only by spaces?
By default the comparison ignores leading and trailing spaces, so 'apple ' and 'apple' count as duplicates. The kept line always keeps its original text. Turn the option off for an exact character-by-character comparison.
Is my text uploaded anywhere?
No. The tool runs entirely in your browser, so lists, emails and data you paste never leave your device.