Sort Lines
Sort a list of lines alphabetically A–Z or Z–A, by length, or shuffle them randomly. Natural number ordering included. Free online line sorter.
Runs in your browser. Nothing is uploaded.
About Sort Lines
Sort Lines puts any one-per-line list in order: alphabetically, reverse alphabetically, shortest first, or in random order. Natural ordering means item 2 comes before item 10, the way people expect, not the way computers usually sort.
Sorting uses your language's collation rules, so accented letters sort next to their plain versions rather than after Z.
How to use Sort Lines
- Type or paste your text into the input box. Press Sample to see an example.
- Adjust the options. The result updates as you type.
- Copy the result, or press Use as input to chain another transformation.
Frequently asked questions
What is natural sort order?
It compares numbers by their value, so file2 comes before file10. A plain alphabetical sort would put file10 first.
Is the shuffle truly random?
It uses an unbiased Fisher–Yates shuffle, so every order is equally likely.
Is Sort Lines free and private?
Yes. Sort Lines is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.