Sort lines & remove duplicates

Sort a list alphabetically, by length or at random, remove duplicate lines and empty lines, and trim spaces. Ideal for email lists, keywords, names and data. Numbers sort naturally (2 before 10).

Runs in your browser. Nothing is uploaded.

Tips

  • Paste a column from Excel or Google Sheets. Each cell becomes a line.
  • Untick Ignore upper and lower case to keep “Apple” and “apple” as separate items.
  • Choose Don't sort to remove duplicates but keep your original order.

Questions

How many lines can it handle?

Hundreds of thousands. It all runs in your browser.

Does it keep the first or last copy of a duplicate?

The first one, in its original position, before sorting.

More free tools