Line Sorter
Sort lines alphabetically, numerically, by length or in reverse — with natural-order support.
To sort lines, paste your list above and choose an order: alphabetical, reverse alphabetical, by line length, or simply reversed. Natural order is on by default, so item2 sorts before item10 rather than after it.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why does my numeric sort put 10 before 2?
What is a natural sort?
How to use the line sorter
- 1Enter or paste your lines.
- 2Choose the sort.
- 3Turn "Natural / numeric order" on or off as needed.
- 4Turn "Case sensitive" on or off as needed.
- 5The result appears immediately — copy or download it.
Embed this tool
Put the working line sorter on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Remove Duplicate LinesDelete repeated lines from a list, keeping the first occurrence of each unique line.Add Line NumbersPrefix every line with a sequential number, with a custom start, separator and zero padding.Columns to Lines ConverterSwitch between a delimited single line and one item per line, in either direction.List Randomizer & ShufflerShuffle a list into random order — for draws, pairings, running orders and sampling.Remove Line BreaksTurn multi-line text into a single line, joining with a space, comma or custom separator.ASCII Art Text GeneratorTurn words into large ASCII banner text for terminals, READMEs and code comments.
Last updated
More text tools