Sort Lines Alphabetically
Sort any list with natural and numeric ordering.
Input
This tool runs entirely in your browser. The data you paste or load is never uploaded.
Result
Enter your input, then run the tool.
About this tool
Sorts lines alphabetically, numerically or by length, ascending or descending. Natural mode puts item 2 before item 10, and an optional case-insensitive mode avoids the “Zebra before apple” surprise.
How to use it
- Paste the list, one entry per line.
- Choose the sort mode and direction.
- Copy the sorted result or download it.
Frequently asked questions
What does natural sort do?
It compares digit runs as numbers, so file2 comes before file10 instead of after it.
Can I deduplicate at the same time?
Yes, enable “Remove duplicates”. The deduplication happens after sorting.
Keep going
Related tools
Remove Duplicate Lines
Deduplicate a list while keeping the original order.
Case Converter
Switch text between sentence, title, camel, snake and kebab case.
Remove Extra Spaces
Collapse double spaces, stray tabs and blank lines.
Word Counter
Count words, lines and paragraphs while you type.
Character Counter
Count characters with and without spaces, plus byte size.
Sentence Counter
Count sentences and average sentence length.