Sort Lines
Paste a list and sort it alphabetically, by number, by length or randomly. The result updates as you type.
How to sort a list
Paste your list and choose an order. A → Z sorts alphabetically using your language’s rules, Natural sorts numbers by value, and Shuffle puts lines in random order. Combine sorting with removing duplicates and empty lines in one step.
Frequently asked questions
What is natural sort?
Natural sort orders numbers by value, so “item 2” comes before “item 10”. Plain alphabetical sorting would put “item 10” first because “1” comes before “2”.
Does it handle accents and other languages?
Yes. Sorting uses your browser’s language-aware rules, so “é” sorts next to “e” and not after “z”.
How random is the shuffle?
The shuffle uses your browser’s cryptographic random generator with the Fisher–Yates method, so every order is equally likely.