Sort Text Alphabetically
Sort lines alphabetically A–Z or Z–A, in reverse or by length.
Check other text cleaning tools.
Quickly reorder any list of lines: alphabetize a glossary, sort URLs, rearrange to-do items or flip the order of a stack. Everything runs locally in your browser.
How to use
- Paste your lines into the textarea (one entry per line).
- Click the sort order you want: A→Z, Z→A, by length or Reverse.
- Copy the sorted result or Clear to start over.
Frequently asked questions
- What sort orders are supported?
- Alphabetical (A→Z and Z→A), by line length (ascending or descending) and a simple reverse of the current order.
- Does it respect locale and accents?
- Yes. Alphabetical sorting uses the browser’s localeCompare, which handles accented characters correctly.
- Can it sort numbers?
- Numbers are sorted as text. For pure numeric lists, alphabetical order may differ from numeric order (e.g. 10 comes before 2).
- Is this tool free?
- Yes, it is 100% free and runs entirely in your browser. No data is uploaded.