How to remove duplicates from a list, and clean it first
You run a duplicate remover and the same item is still there twice. The two copies are rarely identical. They differ by a space, a capital letter or an invisible character, and cleaning first fixes it.
Why duplicates survive
- A trailing space or a tab: "apple" and "apple " are different strings.
- Capitals: "Apple" and "apple" differ unless matching ignores case.
- Hidden characters copied from a web page or a spreadsheet.
- Small differences in URLs, such as a trailing slash or http versus https.
- Blank lines between items, which can make a list look duplicated or longer than it is.
The order that catches them all
- Remove empty lines with the Remove Blank Lines tool, so gaps do not get in the way.
- Run Remove Zero-Width Characters, in case hidden characters are hiding in the items.
- Trim the lines with Trim Whitespace, so spaces and tabs at the edges do not make copies look different.
- Decide whether capitals matter. For names, emails and keywords they usually do not, so leave case sensitivity off. For file names and code they often do.
- Run Remove Duplicate Lines. The first copy of each line is kept, in its original order.
- Sort the result with Sort Lines if you want it in alphabetical order.
Email lists
If your list is mixed up with names and other text, the Extract Emails tool pulls out just the addresses and can remove repeats in the same step. It treats addresses as the same when only the letter case differs, which matches how almost all mail providers behave in practice, though the standard technically allows the part before the @ to be case-sensitive.
URL lists
Two addresses can lead to the same page and still look different: one with a slash at the end and one without, or one starting http and the other https. A dedupe treats them as different lines. Use Find and Replace to make them consistent first, for example by replacing http:// with https://, and then remove the duplicates.
Checking what was removed
To see which lines were dropped, paste the original list into the first box of the Text Diff Checker and the deduplicated list into the second. Lines marked with a minus sign were removed. If you only want the changes, tick "Show only changed lines".
Spreadsheets
Excel and Google Sheets both have their own remove-duplicates commands for columns of cells, and they are the right choice when your data has several columns that must match together. The tools here work on plain lines of text, which suits a single list copied from anywhere.
Privacy
Everything runs in your browser. Customer or contact lists are not uploaded.