Back to home
Text
Sort Lines
Sort lines alphabetically (A–Z)
Runs locally in your browser
Input
Output
—
How it works
Sorts lines of text alphabetically from A to Z using locale-aware ordering—ideal for cleaning lists, glossaries, and configuration entries.
Who it's for: Developers sorting env keys, writers alphabetizing bibliographies, and admins organizing name lists
Treats each line as a separate item and sorts the full list.
Uses standard locale comparison for predictable A–Z order.
Keeps one item per line in the output.
How to use
- Paste a list with one entry per line into the Input field.
- Wait for the sorted list to appear in the Result section.
- Scan for empty lines—they sort to the top or among entries depending on content.
- Click Copy to export the ordered list.
Good to know
- Sorting is ascending only—reverse the list in an editor if you need Z–A order.
- Leading spaces affect sort order—run Trim or remove spaces first if order looks wrong.
- Case-sensitive ordering may place uppercase before lowercase depending on locale rules.