Sort Lines Alphabetically
Paste a list with one item per line, then sort it A to Z, Z to A, by length, or flip the order.
Characters: 0Words: 0Lines: 0
How sorting works
Lines are sorted alphabetically, ignoring capitals, and numbers inside lines are compared by value so "item 2" comes before "item 10". You can also sort from Z to A, sort by line length, or simply reverse the current order.
How to sort text alphabetically in Word and Excel
For a quick one-off list, pasting it into the box above is faster than opening either program.
- Microsoft Word: select the lines, then choose Sort on the Home tab.
- Excel and Google Sheets: select the cells and use Data, Sort range.
How to use the Sort Lines tool
- Paste your list into the box, one item per line.
- Click how you want it sorted.
- Click the copy icon above the text to use the sorted list.
Frequently asked questions
Are numbers sorted correctly?
Yes. Numbers inside lines sort by value, so "item 2" comes before "item 10".
Is sorting case sensitive?
No. "apple" and "Banana" sort by their letters, not by capital or small letter.