Text Sorter
Sort lines alphabetically, numerically, by length or at random.
Your sorted lines will appear here.
About the Text Sorter
An ordered list is easier to scan, compare and proofread. This sorter arranges your lines alphabetically, numerically, by length or in random order, in either direction, and can strip blanks and duplicates at the same time.
Numeric sorting is genuinely numeric, so 9 comes before 10 instead of after it, which is where plain alphabetical sorting usually goes wrong.
How to use the Text Sorter
- 1Paste your lines into the input area.
- 2Pick a sort method: alphabetical, numeric, by length or random.
- 3Choose ascending or descending order.
- 4Optionally remove empty lines and duplicates.
- 5Sort, then copy the result.
Features
- Alphabetical sorting that respects local alphabet rules
- True numeric sorting
- Sort by line length
- Random shuffle for fair ordering
- Optional blank and duplicate removal
Why people use it
- Find an entry quickly in a long list.
- Compare two lists side by side once both are ordered.
- Shuffle names fairly for a draw or a rota.
Common use cases
- Alphabetising a bibliography or attendee list.
- Ordering product codes numerically before import.
- Randomising a list of participants for presentation order.
Privacy and your data
Everything you type or open here is processed by your own browser. No file, text or result is uploaded to a server, stored in a database or shared with anyone, and closing the tab clears it completely.
Frequently asked questions
Related tools
Word Counter
Count words, characters, sentences, paragraphs and reading time.
Character Counter
Track character counts against platform limits as you type.
Case Converter
Convert text to upper, lower, title, sentence, camel, snake or kebab case.
Remove Duplicate Lines
Delete repeated lines from a list, with optional case handling.
Text Repeater
Repeat a word, line or block a set number of times.
Remove Extra Spaces
Clean double spaces, trailing whitespace and blank lines.