Sort Lines & Remove Duplicates

Alphabetize, reverse, shuffle, de-duplicate and clean any list — one line at a time.

🔒 Runs entirely in your browser — nothing you type is uploaded or stored on a server.

This tool takes any list — one item per line — and reorganises it for you. Sort it alphabetically from A to Z or Z to A, reverse the current order, shuffle it randomly, and clean it up by removing duplicate lines, deleting empty lines and trimming stray spaces. The result updates instantly and is ready to copy.

Lists turn up everywhere: email addresses, product names, keywords, to-do items, CSV columns, import files and more. Sorting them alphabetically makes them easy to scan and compare, while removing duplicates is essential before importing data, sending a mailing, or merging two lists that overlap. Doing this by hand is slow and error-prone; this tool does it in a click.

The de-duplication is smart about case — by default “Apple” and “apple” are treated as the same entry — and you can switch that off if case matters. Because all processing is local, you can safely sort and clean sensitive lists like customer emails without uploading them anywhere.

How to use

  1. Paste your list into the box, with one item on each line.
  2. Set the options you want: remove duplicates, remove empty lines, trim lines, and whether to ignore case.
  3. Click an action: A → Z, Z → A, Reverse or Shuffle.
  4. The reorganised list appears in the result box, with a count of how many lines remain.
  5. Click Copy to grab the cleaned, sorted list.

Examples

Alphabetize names
A jumbled list of names becomes a clean A–Z roster with one click on “A → Z”.
Remove duplicate emails
Turn on “Remove duplicates” and a list with repeated addresses collapses to a unique set before you send.
Randomise a draw
Paste a list of entrants and click “Shuffle” to get a fair random order for picking winners.
Clean an import file
Combine “Remove empty lines” and “Trim lines” to prepare a tidy list for importing into a spreadsheet or database.

Frequently asked questions

Does sorting treat uppercase and lowercase differently?
By default it ignores case, so “Banana” and “banana” sort together naturally. Untick “Ignore case” if you need a strict, case-sensitive sort where capitals come first.
How are duplicates detected?
Two lines are duplicates if their text matches. With “Ignore case” on, the match is case-insensitive. The first occurrence is kept and later copies are removed.
Does it sort numbers correctly?
Sorting is alphabetical (text-based), so “10” sorts before “2” because it starts with “1”. For purely numeric data, pad numbers to equal length first if you need numeric order.
Is the shuffle truly random?
It uses the Fisher–Yates algorithm with your browser's random generator, which produces an unbiased shuffle suitable for casual draws and randomising order.
What counts as one item?
Each line is one item. If your data is comma-separated on a single line, use Find & Replace first to put each item on its own line.
Is my list kept private?
Yes. All sorting and cleaning happens in your browser. Your list is never uploaded or stored.