Sort lines alphabetically, numerically, by length or randomly.
Processed locally in your browser.
Understanding your result
Use numeric sorting for lists of numbers so that 2 comes before 10. Blank lines are removed from the output.
Formula and method
Alphabetical sorting uses locale comparison; numeric sorting compares the leading number on each line; length sorts by character count; shuffle randomises the order.
Worked example
“banana, apple, cherry” sorted A→Z becomes “apple, banana, cherry”.
How to use this tool
- Paste your lines.
- Choose the sort order and options.
- Copy the sorted result.
Common mistakes to avoid
- Using alphabetical order on numbers (which puts 10 before 2).
About the Sort Lines
Reorder a list of lines alphabetically, numerically, by length or at random, with optional de-duplication.
Explore all Text and Writing tools
Frequently asked questions
Can it shuffle a list?
Yes. Choose “Shuffle” to randomise the order.