Remove Duplicate Lines
Paste a list and get back one of each. Useful for deduplicating email lists, keyword exports, log lines and CSV columns. Matching ignores case and surrounding spaces by default, because that is where most 'duplicates' hide — a trailing space is invisible but makes two identical lines look different.
When off, 'Apple' and 'apple' are treated as the same line.
Stops an accidental trailing space from making a line look unique.
Nothing is uploaded — this tool runs inside your browser, so your files never leave your device.
Why use this tool
- Keeps the first occurrence of each line and drops the rest
- Optional case-insensitive matching and whitespace trimming
- Can strip blank lines and sort the result alphabetically
- Tells you exactly how many lines were removed
How it works
- 1Paste your list into the box above, one item per line.
- 2Choose whether case and surrounding spaces should matter.
- 3Copy the deduplicated list, or download it as a .txt file.
Remove Duplicate Lines — frequently asked questions
The first one, in the original order. Everything after it is removed, so the sequence of your list is preserved unless you turn on sorting.
More text tools
Looking for something else? Browse all text tools
Explore the other tools
Same deal everywhere on the site — free, no sign-up, and no watermark on anything you download.
Or see every tool on one page.