How to Remove Duplicate Lines (Free, Phone OK)
Key points
- Paste the lines
- Remove duplicates
- Copy the result
A list of names or email addresses has the same lines many times. Finding and deleting them by hand is tiring. Remove Duplicate Lines and Sort a List removes duplicate lines and can also sort. The text you enter is never sent off your device.
Steps
- Paste the list into "Before tidying (one per line)". Enter one item per line.
- Choose how to tidy.
- "Remove duplicate lines"
- "Ignore case when checking duplicates"
- "Remove spaces at the start and end of lines"
- "Remove empty lines"
- Under "Sort", choose from "Do not sort", "A–Z / Japanese order", "Reverse order" and "Shortest first".
- The result appears under "After tidying". Copy with "Copy result".
The "Original line count", "Line count after" and "Lines removed" are shown. Check the number removed.
What the options mean
- Remove duplicate lines: keep only one of lines with the same content (the first to appear stays).
- Ignore case: treat "ABC" and "abc" as the same.
- Remove spaces at the start and end of lines: strip leading and trailing spaces before comparing.
- Remove empty lines: delete lines with nothing written.
Good for
- Tidying a list of email addresses
- Checking a roster or attendee list for duplicates
- Tidying a keyword list
- Pasting one column of Excel or CSV and removing duplicates
Example
Pasted a 120-line attendee list and chose "Remove duplicate lines" and "Remove empty lines". The result was 108 lines, with 12 removed.
Common stumbling blocks
- Duplicates do not disappear: blanks at the start or end of lines. Choose "Remove spaces at the start and end of lines".
- Remain only because of case: choose the option to ignore case.
- Full-width and half-width are treated as different: tidy those first.
Frequently asked questions
Is the original order kept?
With "Do not sort", only duplicates are removed, keeping the original order.
Is the text sent?
No. It is processed inside the browser.
Summary
Paste and choose options. Always check the number of lines removed.
Use "Remove Duplicate Lines and Sort a List" (free)Tools that go well with this
- Remove and Tidy Line Breaks in Text: Tidy line breaks in text copied from PDFs and elsewhere.
- Character Counter (for Applications and Reports): Count characters, lines and manuscript sheets of your text.
- Convert Full-Width, Half-Width, Hiragana and Katakana: Convert full-width/half-width and hiragana/katakana.