Text Sorter
Sort lines A–Z, by length, reverse or shuffle.
100% private — runs in your browser, nothing is uploaded.
How to use the Text Sorter
- 1Paste your lines
Add your lines, one item per row.
- 2Pick a sort order
Sort A–Z, Z–A, by shortest or longest, reverse the order, or shuffle randomly.
- 3Copy the result
Copy the reordered lines with one click.
Examples
| Input | Output |
|---|---|
banana
apple
cherry | apple
banana
cherry |
one
two
three | three
two
one |
Free online text sorter
This line sorter arranges lines of text alphabetically (A–Z or Z–A), by length, in reverse, or in random (shuffled) order. It is handy for organising lists, names, keywords, CSV columns and any line-based data.
Sorting options
- A → Z / Z → A — alphabetical order.
- Shortest / Longest first — by line length.
- Reverse — flip the current order.
- Shuffle — randomise the lines.
Frequently Asked Questions
How do I sort a list of lines?
Paste your lines (one per row) and click A → Z or Z → A. You can also sort by length, reverse the order, or shuffle the lines randomly.
Does it change my text?
It only reorders whole lines — the content of each line stays the same. Everything runs in your browser.
Is the sorting case-sensitive?
Sorting uses your browser's locale comparison, which generally groups upper and lower case together in a natural order rather than putting all capitals first.
Can I randomise a list?
Yes. Click Shuffle to put the lines in a random order — handy for picking a random winner or randomising quiz questions.