Remove Duplicate Lines, Sort Lines & Clean Up Text

Remove duplicate lines, sort lists A–Z or by length, delete empty lines, trim extra spaces and join lines. Fast, private and works on huge lists.

0Lines
0Unique
0Duplicates
0Empty
Duplicates
Sort
Clean up

How to remove duplicate lines

  1. Paste your list, one item per line: emails, names, keywords, product codes…
  2. Press Remove duplicates. You'll see how many lines were removed.
  3. Sort, clean up spaces or join the lines if you need to, then copy or download the result. Undo takes you back a step.

To compare without caring about upper and lower case, tick that option. Everything happens in your browser, so customer or email lists never leave your computer.

Frequently asked questions

Which copy of a duplicate line is kept?

The first one. Every later copy is removed and the rest of the list keeps its original order, so you can remove duplicates without sorting.

Why weren't two lines that look the same removed?

They probably differ in upper and lower case or in invisible spaces. Tick "Ignore upper/lower case" so Apple and apple count as the same, and keep "Ignore spaces at the ends" ticked to ignore stray spaces and tabs.

How does sorting handle numbers?

It sorts naturally, the way people expect: item 2 comes before item 10, and accented letters sort next to their plain letter in your language instead of at the end.

Related tools