Sort Lines
Sort lines alphabetically, numerically, by length or shuffle them.
Sort a list of lines in seconds.
About Sort Lines
Sort any list of lines A to Z or Z to A, in natural order (item2 before item10), by number, by length, reverse the order or shuffle randomly. Optionally ignore case and remove empty lines. Copy or download the sorted list.
Sort a list of lines in seconds. Choose alphabetical, reverse alphabetical, natural order, numeric, by length, reversed or shuffled, then copy the result. Everything is done locally in your browser.
How to use Sort Lines
- Paste your lines into the input box.
- Pick a sort order.
- Optionally ignore case or remove empty lines, then copy or download the result.
Key features
- A–Z, Z–A, natural, numeric, length, reverse and shuffle.
- Natural sort puts item2 before item10.
- Shuffle again with one click.
Common use cases
- Alphabetising names, tags or references.
- Ordering numbered lists correctly.
- Randomising a list for a draw or a quiz.
Frequently asked questions
Related tools
Case Converter
Convert text to upper, lower, title, sentence, camel, snake and more.
Remove Duplicate Lines
Remove repeated lines from a list and keep the unique ones.
Text Diff Checker
Compare two texts and see exactly what was added or removed.
Lorem Ipsum Generator
Generate placeholder text by paragraphs, sentences or words.

