Sort Lines is a free tool that puts lines of text in order: alphabetically, in natural number order, by length, reversed, or randomly shuffled. It follows the sorting rules of your language, so accented letters land in the right place. Sorting happens in your browser.
How to sort a list
- Paste your list, one item per line.
- Choose an order. The sorted list appears on the right.
- Copy or download the result.
Sort orders
- A → Z / Z → A: alphabetical order, ignoring capitals by default.
- Natural: numbers are compared by value, so
file2comes beforefile10. Best for file names, versions and numbered items. - Shortest / longest first: by the number of characters, then alphabetically.
- Reverse order: flips the list upside down without sorting it.
- Shuffle: a fair random order, for draws, quizzes or picking a random item.
Capitals first
By default, “apple” and “Apple” sort together. Tick Capitals first to put uppercase before lowercase when words are otherwise the same.
To remove repeated items as well, use Remove Duplicate Lines.
Frequently asked questions
What is natural sort?
It orders numbers by value, so “item 2” comes before “item 10”. Plain alphabetical sorting would put “item 10” first, because it compares character by character.
How are accented letters sorted?
Using your language’s rules, so “Éclair” sorts with the E words rather than after Z.
Is the shuffle truly random?
Yes. It uses an unbiased shuffle driven by your browser’s random number generator. Click “Shuffle again” for a new order.
Last updated