How to use the Remove Duplicate Lines
- Paste your list into “Your lines”, one item per line.
- Choose the options you need. Trimming whitespace is on by default; turn on “Ignore case” to treat “Apple” and “apple” as the same line.
- Read the unique lines on the right and the number of duplicates removed below.
- Click “Copy result” to copy the cleaned list.
Examples
banana apple banana cherry apple
banana apple cherry
Anna@example.com anna@example.com ben@example.com
Anna@example.com ben@example.com
red red blue
red blue
How duplicates are detected
Each line is compared with the lines that came before it. With Trim whitespace on, spaces and tabs at the start and end of a line are ignored, so red and red count as the same line, and the trimmed version appears in the result. With Ignore case on, capital and small letters are treated as equal.
Accents written in different ways, such as an “é” typed as a single character or as “e” plus an accent mark, are treated as the same, because both look identical on screen.
Counting what changed
The figures below the tool show how many lines you pasted, how many unique lines remain, and how many duplicates and empty lines were removed. A pasted list that ends with a line break has one extra, empty, last line, which is included in “Lines in”.
Related text tools
To treat “Apple” and “APPLE” as the same entry in the result as well, convert the list to lowercase with the Case Converter first. For lists with stray tabs, odd spaces or invisible characters, the Text Cleaner removes them before you deduplicate.
Common uses
- Cleaning email lists, keyword lists or product codes before importing them.
- Removing repeated entries from logs, exports or copied spreadsheet columns.
- Merging two lists and keeping each item only once.
- Checking how many duplicates a list contains without changing its order.
Limitations
- Lines must match exactly (after the options you chose) to count as duplicates. Similar lines such as “colour” and “color” are kept.
- “Ignore case” compares letters without their capitalisation but still treats accented and unaccented letters as different (“resume” and “résumé”).
- The result uses standard line breaks, even if your text came from Windows with different ones.
- The list is not sorted. Sort it in a spreadsheet or text editor if you need alphabetical order.