Remove Duplicate Lines & Sort

Paste a list to remove duplicates, sort it and clean up empty lines in one step.

What to do

Everything you enter is processed inside this browser and is never sent to a server.

How to use it

  1. Paste your list, one item per line. You can also paste a column copied from a spreadsheet.
  2. Tick the operations you want and choose how to sort. The result updates immediately.
  3. The line count before and after, plus how many duplicates and empty lines were removed, is shown above the result.

What each option does

Remove duplicate lines
Keeps the first occurrence of each line and drops later copies. The remaining lines keep their order.
Ignore upper/lower case
Treats “Apple” and “apple” as the same line, both for removing duplicates and for sorting.
Trim spaces on each line
Removes spaces and tabs at the start and end of each line, so lines that differ only by stray spaces count as duplicates.
Remove empty lines
Drops blank lines and lines that contain only spaces.

How sorting works

Operations run in this order: trim, remove empty lines, remove duplicates, sort.

Frequently asked questions

How many lines can it handle?

Tens of thousands of lines are processed instantly on a typical computer.

Is my list uploaded?

No. Everything happens in your browser, so email lists and customer data stay on your device.