Sort Lines Alphabetically — Free Online Tool
Last updated: January 2025
What is Sort Lines Alphabetically?
Sort Lines Alphabetically arranges your text lines in A-Z or Z-A order using locale-aware sorting.
When to use Sort Lines Alphabetically?
Use it to sort word lists, organize CSV data, alphabetize bibliography entries, and arrange any line-based content.
How to use this tool
- 1Paste your unsorted text (one item per line)
- 2Choose A-Z or Z-A order
- 3Click 'Sort' and copy the result
Examples
| Input | Output |
|---|---|
| banana apple cherry | apple banana cherry (A-Z) |
| zebra ant mouse | ant mouse zebra (A-Z) |
| (Country list) | Alphabetically sorted countries |
| (Bibliography entries) | Sorted by first word of each entry |
| (Tag list) | Tags in alphabetical order |
Rules & Behavior
- Sorts by first character then subsequent characters
- Case-insensitive comparison (A = a)
- Blank lines sorted to the top by default
Related Tools
Frequently Asked Questions
Is the sort case-sensitive?
No, our sort is case-insensitive so 'Apple' and 'apple' are treated the same. Capitalized words don't automatically sort before lowercase.
Can I sort in reverse (Z-A)?
Yes, choose the Z-A option to sort in reverse alphabetical order.
Does it sort numbers correctly?
Lines starting with numbers sort before letters. However, numeric sorting within strings is lexicographic (1, 10, 2) not natural (1, 2, 10). For natural number sorting, use Excel or a dedicated tool.
Can I sort CSV columns?
Our tool sorts lines, not columns. For CSV column sorting, use a spreadsheet application.
Does it handle special characters?
Yes, we use locale-aware sorting that handles accented characters (é, ñ, ü) correctly.