Text Sorter
Sort any list alphabetically or by line length, ascending or descending. Optionally clean it up at the same time by removing blanks and duplicates.
How to use this tool
- Paste your lines into the input box.
- Pick a sort order: A–Z, Z–A, shortest first or longest first.
- Choose optional clean-up: ignore case, remove blanks, remove duplicates.
- Press “Sort text”, then copy or download the result.
Key features
- Four sort orders: alphabetical both ways and by length both ways.
- Case-insensitive sorting for natural-looking results.
- Built-in blank-line and duplicate removal.
- Instant results, right in your browser.
Frequently asked questions
Without it, capital letters sort before lowercase (so “Zebra” comes before “apple”). With it, lines sort as if everything were the same case, which is usually what you want.
Lines of equal length are ordered alphabetically between themselves, so the result is stable and predictable.
No. Sorting runs entirely in your browser.
This tool runs entirely in your browser — your text is never sent to or stored on our server.
Related tools
Count words, characters, sentences and reading time live.
Clean up lists by removing repeated lines instantly.