Runs locally — nothing is uploaded

Text Sorter

Paste a list and sort it alphabetically or by line length, in either direction.

How to use the Text Sorter

  1. Paste your list into the input box, one entry per line.
  2. Choose a sort order: A→Z, Z→A, shortest-to-longest, or longest-to-shortest.
  3. The sorted list appears instantly in the result box.
  4. Copy it to your clipboard or try a different sort order on the same list.

About the Text Sorter

Sorting a list by hand is manageable at ten lines and painful at a hundred. Whether it's a guest list, a set of product names, a spreadsheet column pasted into plain text, or a list of file names, getting it into a consistent order — alphabetical or by length — is one of those small tasks that eats more time than it should when done manually.

This tool handles two distinct sorting approaches. Alphabetical sorting (A→Z or Z→A) orders lines the way a dictionary would, which is the standard choice for names, categories, or any list meant to be scanned quickly by a reader. Sorting by length instead orders lines from shortest to longest or vice versa — useful for tasks like arranging headlines by length for a layout, checking which entries in a list are unusually short or long, or preparing data for a chart that reads better with items sorted by size.

Alphabetical sorting in this tool is case-insensitive and follows standard lexicographic order, so it behaves the way most spreadsheet and word processor "sort" features do. Because everything runs in your browser, you can sort lists containing sensitive or unpublished information without any of it being uploaded.

Frequently asked questions

Is the alphabetical sort case-sensitive?+
No, sorting is case-insensitive, so "apple" and "Apple" are treated as equivalent for ordering purposes.
How does it handle numbers at the start of a line?+
Numbers are sorted as text characters in alphabetical mode (so "10" comes before "9"), following standard string sorting rules — for true numeric sorting, list items with consistent digit padding (e.g. "09", "10").
Does sorting remove blank lines?+
Blank lines are preserved and sorted along with the rest of the list based on the mode selected.
Can I undo a sort?+
Re-paste your original list into the input box to start over — sorting doesn't overwrite your original text unless you replace the input yourself.

Related tools