Remove Duplicate Lines
Paste a list and instantly remove repeated lines. Choose whether matching should be case-sensitive, ignore surrounding whitespace, and optionally drop empty lines too.
0 unique lines · 0 duplicates removed
Everything you enter is processed in your browser and isn't sent to our servers.
How to use remove duplicate lines
- 1Paste your list, one item per line, into the input box.
- 2Toggle case sensitivity, whitespace trimming and empty-line removal as needed.
- 3Watch the line counts update instantly.
- 4Copy the de-duplicated result.
About this tool
Duplicate lines creep into lists from merged spreadsheets, combined email lists, exported logs or copy-pasted data. This tool keeps only the first occurrence of each line, in its original order.
The case sensitivity option controls whether "Apple" and "apple" count as the same line. The trim option controls whether trailing spaces or tabs are ignored when comparing — useful for data that was pasted from inconsistent sources.
Everything runs as you type, using your browser's own JavaScript engine, so nothing you paste is uploaded or stored.
Frequently asked questions
No. The first occurrence of each unique line is kept in its original position — only later duplicates are removed.