Toolcedar

Text Line Sorter

Sort lines alphabetically or by length, reverse them, and strip duplicates or blank lines — all at once, in your browser.

Cleanup options

How to use the Text Line Sorter

  1. Paste your lines. One item per line is all the tool expects.
  2. Choose the order. Sort alphabetically, by length, or leave the order alone.
  3. Clean it up. Optionally strip duplicates, blank lines and stray whitespace.

Frequently asked questions

Does sorting handle accented characters correctly?
Yes. It uses locale-aware comparison, so é sorts next to e rather than after z, which is what naive sorting by character code does.
Are numbers sorted as numbers or as text?
Numerically, so 2 comes before 10. Plain alphabetical sorting would put 10 first because it compares character by character, which is rarely what anyone wants.
How are duplicates decided?
By exact match after any trimming you have enabled. Turn on case-insensitive matching to treat Apple and apple as the same line.
Is my text uploaded anywhere?
No. Everything is processed in your browser and nothing is transmitted or stored, so it is safe to paste internal lists.

Last updated