Sort Lines
Sort text lines alphabetically.
How to sort lines of text
Paste your text and sort the lines alphabetically (A–Z or Z–A), numerically, or reverse their order — with options to ignore case and remove blank lines. It instantly organises lists, names, keywords and data so they're easier to scan, compare and use. Copy the sorted result back with one click.
When to sort lines
Sorting is handy for alphabetising a glossary or contact list, ordering keywords, tidying a bibliography, or arranging data before importing it elsewhere. A sorted list is faster to read and to deduplicate. Everything runs in your browser, so nothing you paste is sent to a server.
Related Tools
Frequently Asked Questions
How are lines sorted?
Lines are sorted alphabetically using your browser's locale comparison, so accented and mixed-case text sorts naturally.
Can I reverse the order?
Yes. Enable reverse order to sort from Z to A instead of A to Z.
Can it clean the list while sorting?
Sorting groups identical lines together; pair it with the Remove Duplicate Lines tool to remove repeats.
Is the sort lines tool free?
Yes. It is free, needs no sign-up, and sorts text instantly in your browser.