Sort lines alphabetically
Sort a list of lines alphabetically, from A to Z or Z to A, in a single click.
Processed on your device. Nothing is sent to any server.
Sorts lines alphabetically (A-Z or Z-A) ignoring case and accents, using your browser's collation rules.
Use cases
- Sorting a list of names or emails.
- Preparing data for a visual comparison.
- Organizing a list before pasting it into a spreadsheet.
How it works
- 1
Paste your list
Type or paste the list of lines on the left.
- 2
Pick the order
Select A→Z or Z→A and copy the sorted result.
Technical details
- "émile", "Émile" and "emile" compare as equal, so they end up next to each other.
- Numbers are sorted as text, not by value: "10" comes before "2". If you need numeric order, pad with leading zeros (02, 10).
- Blank lines end up at the top in ascending order and at the bottom in descending order.
Frequently asked questions
Is the sort case- or accent-sensitive?
No: the comparison ignores both, like a dictionary, so "Émilie" and "emilie" end up together.
Why does "10" appear before "2"?
Because sorting is alphabetical: it compares character by character, and "1" comes before "2". To sort by value, pad the numbers with leading zeros so they all have the same length.