Sort lines alphabetically
Sort any list A→Z or Z→A with locale-aware ordering.
How to use
- Paste your list into the input box, one item per line.
- Choose A → Z for ascending order or Z → A for descending.
- Copy the sorted list from the result pane.
Frequently asked questions
How are accented characters sorted?
With locale-aware comparison: é sorts next to e rather than after z, matching how dictionaries order words.
How are numbers at the start of lines sorted?
Lexicographically, like words — so "10" sorts before "2". For strictly numeric ordering, pad numbers to the same width first.
Can I also remove duplicates while sorting?
Use this tool together with our Remove duplicate lines tool: deduplicate first, then sort — or the other way round, the result is the same.
About this tool
Whether it is a list of names, products, tags or file names, an alphabetically sorted list is easier to scan and compare. Paste your list and sort ascending (A→Z) or descending (Z→A) in one click. Sorting uses locale-aware comparison, so accented characters are placed where readers expect them instead of being dumped at the end like naive byte ordering does. Combine it with the duplicate-line remover to turn a raw export into a clean, ordered, unique list in seconds — all without your data leaving the browser.