Remove duplicate lines
Clean up a list of emails, phone numbers, keywords, names or anything else with one item per line. The tool removes repeated lines instantly, can ignore differences in capital letters and spaces, removes blank lines, and can sort the result or show only the lines that were repeated.
How to use the remove duplicate lines
- Paste your list into the top box, one item per line.
- Choose the options: ignore capital letters, ignore extra spaces, remove empty lines.
- Pick a sort order if you want one, and what to show.
- Copy the result or download it as a text file.
How it works
The tool reads your list line by line and keeps the first time each line appears, in the original order.
- Ignore capital letters treats "Apple" and "apple" as the same line.
- Ignore extra spaces removes spaces at the start and end of each line and squeezes repeated spaces, so "New Delhi " and "New Delhi" match.
- Remove empty lines drops blank lines.
- Show only the lines that were repeated is handy for finding duplicate entries, such as a customer added twice.
- Sort puts the cleaned list in alphabetical, reverse, numeric or length order. Alphabetical sorting understands numbers, so "item 2" comes before "item 10".
Your list is processed in your browser and never uploaded.
Example
Input:
- Mumbai
- delhi
- Pune
- Delhi
- Mumbai
With Ignore capital letters on, the result is Mumbai, delhi, Pune: 5 lines in, 3 lines out, 2 repeats removed.
Frequently asked questions
How do I remove duplicates from a list in Excel or Google Sheets?
Copy the column, paste it here, remove the duplicates, then copy the result back. Spreadsheets also have a built-in Remove duplicates option under the Data menu.
Does it keep the original order?
Yes, unless you choose a sort. The first time each line appears is the one that's kept.
Can I find which lines were repeated?
Yes. Under Show, choose Only the lines that were repeated.
Is there a limit to the list size?
No fixed limit. Lists with hundreds of thousands of lines work on most computers.
Last updated: 25 October 2026