Text Line Sorter
Paste a list and get it back in alphabetical order, ascending or descending. Sorting uses locale-aware comparison rather than raw character codes, which is the difference between a list that reads correctly and one where every capital letter sorts before every lowercase letter.
Free, no signupRuns entirely in your browser
Input
Result
Apple Banana Mango Orange
About
What the Text Line Sorter does
That distinction bites in practice. A naive sort puts 'Zebra' before 'apple' because uppercase Z has a lower character code than lowercase a. Locale-aware comparison also files accented characters next to their base letters, so 'école' lands near 'ecole' instead of at the end of the list.
How it works
Using the Text Line Sorter
- 1Paste your items, one per line.
- 2Empty lines are discarded so blank rows don't collect at one end.
- 3Lines are compared using locale-aware collation, which handles case and accents sensibly.
- 4Choose ascending (A–Z) or descending (Z–A).
- 5Copy the sorted list from the output.
Use cases
What people use it for
- Alphabetising a glossary, index or reference list
- Ordering a list of names, tags or categories before publishing
- Making two lists comparable so you can diff them line by line
- Tidying an unordered set of imports or dependencies
FAQ
Frequently asked questions
6 related
All tools →