GENERAL TOOLS

Text line sorter and duplicate remover

Paste a list with one item per line to sort it A to Z, by length or in reverse, and remove duplicate and empty lines in one step.

  • Free, no sign-up
  • Runs privately in your browser
  • Instant results

How to use the text line sorter

  1. Paste your list into the box, one item per line.
  2. Choose an order: original, reversed, A to Z, Z to A, shortest first or longest first.
  3. Choose whether to remove duplicates, ignore case, trim spaces and drop empty lines.
  4. Copy the result, or reuse it as the input for another pass.

Natural sorting

The A to Z option uses natural order, so item 2 comes before item 10 instead of after it. That is usually what people expect when sorting file names, product codes or numbered lists.

Removing duplicates

Duplicate removal keeps the first time each line appears. Turn on Ignore case to treat London and london as the same, and Match equivalent Unicode characters to treat accented letters typed in different ways as the same line. Your text never leaves your device.

Everyday uses

Clean up email lists and spreadsheets before importing them, alphabetise reading lists, glossaries and names, remove repeated keywords or tags, find the longest entries in a list, or reverse a log so the newest lines come first.

Spreadsheet users can copy a single column, paste it here, sort or de-duplicate it and paste it back. Each line becomes one cell again.

Below the result you can see how many lines went in, how many came out and how many duplicates were removed, so you can check nothing unexpected happened.

Frequently asked questions

How do I remove duplicate lines from a list?

Paste the list, keep 'Remove duplicates' ticked and copy the result. Choose 'Keep original order' if you do not want the list re-sorted.

Can I sort a list alphabetically?

Yes. Choose 'A to Z (natural order)' or 'Z to A (natural order)'.

Is my text uploaded?

No. Sorting happens in your browser and nothing is sent to a server.