How to use the Remove Duplicate Lines tool
- Paste your list into the left box, one item per line.
- Choose whether case and extra spaces should be ignored.
- The cleaned list appears on the right at once. Copy it.
Typical uses
- Merge two mailing lists and remove addresses that appear in both.
- Clean up a keyword list for ads or SEO.
- Remove repeated rows from a log file or a column copied from a spreadsheet.
- Turn a list of tags or names into a unique list.
What counts as a duplicate
By default, two lines are duplicates if they are exactly the same after spaces at the start and end are removed. Tick “Ignore upper and lower case” to treat Anna@Example.com and anna@example.com as the same. The first occurrence is kept with its original spelling.
From a spreadsheet
Copy a column in Excel or Google Sheets, paste it here and copy the result back. For whole rows with several columns, each row is compared as one line, so rows are only removed if every cell matches.
Privacy
Everything runs in your browser. Your text is not sent to our server or stored anywhere.
Cleaning email lists
Duplicates in email lists are often hidden by spaces or capital letters. Tick “Ignore upper and lower case”, because email addresses are not case-sensitive in practice. After removing duplicates, it is worth checking for obvious typos such as gmial.com or addresses without @ before importing the list into a newsletter tool.
Counting unique items
The number of lines after cleaning tells you how many unique values your list contains, for example unique customers in an export or unique IP addresses in a log extract. For counting how often each value appears, a spreadsheet pivot table or a word counter is a better tool.
Frequently asked questions
Is the order kept?
Yes. Lines stay in their original order; only later repeats are removed. To sort the list as well, use Sort Lines.
How long can the list be?
Hundreds of thousands of lines work fine in a modern browser.
Are empty lines removed?
Yes, by default. Untick “Remove empty lines” to keep them.
Can I see which lines were duplicates?
The tool shows how many lines were removed. To compare two versions in detail, use the Diff Checker.
Can I keep the last occurrence instead of the first?
The first occurrence is kept. To keep the last one, reverse the list order first (Sort Lines can reverse), remove duplicates and reverse it back.
Is my list sent to a server?
No. Duplicates are removed in your browser and the text never leaves your device.