Remove duplicate lines
Remove repeated lines from a list, such as emails, phone numbers, names or keywords. The first copy of each line is kept, in its original order.
Your files stay on your device. Nothing is uploaded.
Step 1: Type or paste your text
Step 2: Options
Step 3: Copy or download
How to remove duplicate lines
-
Paste your list
Paste the list into the first box, one item per line.
-
Choose what counts as the same
Ignore capital letters to treat Apple and apple as one, and ignore spaces at the ends. Tick Remove blank lines too for a tidy list.
-
Copy the clean list
The result updates as you type, with the number of duplicates removed. Copy it or download a .txt file.
About this tool
The first copy stays, in order
Each line is kept the first time it appears and later copies are dropped, so the list keeps its original order. To also sort it, use Sort lines with Remove duplicate lines ticked.
Common uses
Cleaning email lists before sending, merging exported contact lists, removing repeated keywords, and finding how many unique entries a list has.
Large lists
Lists with hundreds of thousands of lines work, because the check runs in your browser in one pass.
Privacy
This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.
Frequently asked questions
Are "Apple" and "apple" the same?
Only if you tick Ignore capital letters. Then the first spelling found is the one kept.
Does it remove duplicate words inside a line?
No. It compares whole lines. Put one item per line first, for example with Find and replace to turn commas into line breaks.
Is my list uploaded?
No. The text stays in your browser and is never sent anywhere.
Can I count the lines?
Yes. The result shows how many lines are left and how many were removed.
Related tools
- A › Z Sort lines Sort lines alphabetically, by number, by length or shuffle them.
- Replace Find and replace Replace words or patterns in text, with a count of changes.
- Diff Text compare Compare two texts and see what was added or removed.
- Words Word counter Count words, characters and sentences as you type.
- Aa › AA Case converter Change text to upper, lower, title or sentence case.
- CSV › XLSX CSV to Excel Convert a CSV file to an Excel workbook and keep leading zeros.
- TSV › CSV TSV to CSV Convert tab-separated text to a CSV file.
- Characters Character counter Count characters with and without spaces.