Sort Lines
Put any list in order: A to Z, Z to A, shortest or longest first, reversed or shuffled. Paste one item per line.
Numbers sort in number order: 2 comes before 10.
How to sort lines
- Paste your list, one item on each line.
- Choose the order and any options.
- Copy or download the sorted list.
Useful for
- Names, cities or products in alphabetical order.
- Shuffling names for a fair draw or a quiz order.
- Reversing a list that is in the wrong direction.
Only want to remove repeats and keep the order? Use Remove duplicate lines.
Frequently asked questions
How do I sort a list alphabetically?
Paste the list with one item per line, keep "A → Z" selected, and the sorted list appears on the right. Copy or download it.
Why does "item 2" come before "item 10"?
The tool sorts numbers by their value, the way people expect, instead of character by character (which would put 10 before 2).
Can it remove duplicates and empty lines while sorting?
Yes. Tick "Remove duplicates" and "Remove empty lines".
What does "Ignore capitals" do?
With it on, "apple" and "Apple" are sorted together. With it off, lines that differ only in capitals are still close together, with capitals first.
Is my list sent anywhere?
No. Sorting happens in your browser, on your device.
More text tools
Word counter
Count words, characters, sentences and reading time.
Case converter
UPPER, lower, Title and Sentence case in one click.
Remove duplicate lines
Keep each line only once.
Remove extra spaces
Clean up double spaces and empty lines.
JSON formatter
Format, check and minify JSON, and see where an error is.