Sort Text Lines
Sort lines of text alphabetically (A–Z or Z–A). Fast, free and private.
When you have a list — names, terms, entries — putting it in alphabetical order by hand is tedious and error-prone. Sort Text Lines orders your lines A–Z or Z–A instantly, so a messy list becomes a tidy one in a click.
How to use sort text lines
- 1. Paste your list, one item per line.
- 2. Choose A–Z or Z–A.
- 3. Copy the sorted list.
When to use Sort Text Lines
Alphabetise a list
Sort names, keywords or glossary terms into order.
Organise data
Bring a pasted column of entries into a predictable sequence.
Prep before deduping
Sort a list so duplicates sit together, then remove them.
Sorted the way your language sorts
Lines are compared with your browser's language rules rather than raw character codes. That keeps "éclair" next to "eclair" instead of after "z". With a Romanian browser, ă, â, î, ș and ț are treated as letters of their own, in dictionary order (a, ă, â, b … s, ș, t, ț); in English they're sorted together with a, i, s and t.
Blank lines and duplicates
Empty lines are dropped from the sorted result. Duplicates are kept and end up next to each other — run the list through Remove Duplicate Lines afterwards if you only want each entry once.
Frequently asked questions
Can I sort in reverse?
Yes — choose Z–A for descending order.
How are numbers and capitals handled?
Capitals and lowercase are sorted together (apple, Apple, b, Zebra), not all capitals first. Numbers are compared as text, so "10" comes before "9" — write 09, 10 if you need numeric order.
Is my list uploaded?
No — sorting happens in your browser.
