Sort Lines
Sort any list alphabetically, by number, by length, or shuffle it randomly.
- Free & unlimited
- No sign-up
- Instant results
How to use the Sort Lines
- Paste your list, one item per line.
- Pick a sort order.
- Copy the sorted list.
Alphabetical vs numeric order
Plain alphabetical sorting puts item 10 before item 2, because it compares character by character. Numbers 1 → 9 uses natural sorting, so numbers inside text are compared as numbers: item 1, item 2, item 10.
Shuffle
Shuffle puts lines in a random order, handy for picking a random winner, mixing quiz questions or randomising a playlist. Each click on the option gives a new order.
Frequently asked questions
Does sorting handle accents?
Yes. It uses your browser's language-aware sorting, so é sorts next to e.
Can I sort and remove duplicates at once?
Yes, tick Remove duplicates.
Is my text uploaded?
No. Sorting runs in your browser.
Related tools
Remove Duplicate Lines
Delete repeated lines from a list and keep only unique ones.
Reverse Text
Reverse letters, words or lines, or flip text upside down.
Remove Extra Spaces
Clean up double spaces, tabs, trailing spaces and empty lines.
Case Converter
Change text to UPPERCASE, lowercase, Title Case, camelCase and more.