Remove Duplicate Lines and Sort Lines Online
Remove duplicate lines from a list, sort lines A to Z or by number, trim spaces and drop empty lines. Useful for cleaning email lists, keywords, product codes and any text with one item per line.
Lists are processed in your browser and never uploaded, so customer emails or internal codes are not sent to a server.
How duplicates are detected
Two lines are duplicates when they match exactly. With "Trim spaces" on, spaces and tabs at the start and end of each line are ignored, so "apple " and "apple" count as the same. With "Ignore upper and lower case" on, "Apple" and "apple" also match. The first occurrence is kept and later copies are removed, so the original order of the remaining lines is preserved unless you choose a sort.
How sorting works
A to Z sorting follows natural language order, so accented letters sit next to their plain forms and "item 2" comes before "item 10". Number sorting reads the first number in each line the English way: 1,000 is one thousand, 1.5 is one and a half, and amounts such as $1,250.50 or -3 work too. Lines without a number go to the end. A number that could mean two things, such as 1,5 or 1.250,00, is not guessed: the line goes to the end and the tool tells you. Fractions and dates such as 1/2 or 12/25 are treated the same way, because "1/2" can also mean January 2. To sort dates, write them as 2026-11-14 and choose A to Z.
If the same item is written with different capitals, make the list consistent with the case converter first. The word counter shows how many words and characters are left.
Frequently asked questions
Can I see which lines were duplicates?
Yes. After cleaning, the summary lists the lines that appeared more than once and how many times each one occurred.
How many lines can it handle?
Hundreds of thousands of lines work in a desktop browser. Very long lists may take a moment on a phone.
Does it change the text inside each line?
No. Apart from trimming spaces at the ends when that option is on, each kept line stays exactly as it was.