~ / text / remove-duplicates

🧹 Remove Duplicate Lines

Paste a list with one item per line and get only the unique lines back. Great for cleaning up spreadsheet columns, email lists and keyword lists.

options
Treat as the same
Sort
Show
Output
output

How to remove duplicate lines

  1. Paste your list with one item per line. Copying a column from Excel or Google Sheets gives you exactly that.
  2. Choose what counts as "the same". By default case and leading/trailing spaces are ignored, so Apple and apple  are treated as one item.
  3. Optionally sort the result, then copy it and paste it back into your spreadsheet. The number of removed lines appears below the output.

Matching options

OptionTreated as the sameWhen to use it
Ignore caseApple = appleEmail addresses, keywords, domains
Ignore leading/trailing spaces banana  = bananaData with stray spaces from copy and paste
Ignore all spaces(555) 123 4567 = (555)1234567Phone numbers, codes and IDs where spacing doesn't matter
Remove empty linesBlank lines are droppedColumns with empty rows in between

When a space-ignoring option is on, the output also uses the trimmed value. Turn both space options off to keep lines exactly as they were. When an item appears several times, the first occurrence is kept by default; "Keep the last occurrence" keeps the latest one instead, at its position.

What to show

Sorting

A → Z uses natural sorting, so item2 comes before item10 and accented letters sort next to their plain versions. "By length" puts the shortest lines first and sorts lines of equal length alphabetically. "Most frequent" puts the most repeated items at the top.

Common uses

Lines are compared as a whole. To dedupe items within one comma-separated line, put each item on its own line first. If you paste several spreadsheet columns, the entire row (including tabs) must match to count as a duplicate. Your data stays in your browser.

FAQ

How is this different from Excel's Remove Duplicates?
The result is the same, but here you can switch between ignoring case and spaces, showing only duplicates and adding counts instantly — without changing your original sheet. Copy the column in, copy the result back.
How do I find items that appear in both lists?
Dedupe each list first, then paste both lists together and choose "Duplicates only". Only items found in both lists remain.
How do I remove duplicates from a comma-separated list?
Replace the commas with line breaks so each item is on its own line, paste it here, then turn the result back into a comma-separated list with the "A separator" option of the line break remover.
Is it case-sensitive?
Not by default — "Apple" and "apple" are treated as duplicates. Turn off "Ignore case" if capitalization matters, for example for passwords or case-sensitive IDs.
How many lines can it handle?
Everything runs in your browser, so even hundreds of thousands of lines usually finish in under a second. Very large files depend on your device's memory.

Related tools