Sort Lines Alphabetically
Put a list in alphabetical order. Upper and lower case sort together, and numbers sort by value.
How the sort lines alphabetically works
Lines are sorted A to Z without regard to case, so "apple" and "Apple" sort next to each other. Numbers inside a line are compared by value, so "Item 9" comes before "Item 10". Each line is treated as one item.
Everything runs in your browser. Your text is not uploaded or stored.
Example
Input
banana Apple cherry apple banana Item 10 Item 9
Result
Apple apple banana banana cherry Item 9 Item 10
Frequently asked questions
Is the sort case sensitive?
No. "apple" and "Apple" are treated as the same word for ordering.
How are numbers sorted?
By value, so 9 comes before 10 and 100.
More text tools
- Reverse Text
- Remove Spaces
- Remove Line Breaks
- Remove Duplicate Lines
- Trim Whitespace
- Word Counter
- Character Counter
- Line Counter
- Sentence Counter
All of these are also available together on the Text Tools page.