Text tool
Sort Lines
Put each line of pasted text into alphabetical order.
Tip: press Ctrl+Enter (or ⌘+Enter) to run from a text box.
Result will show here after you run the tool.
How to sort lines
- Paste one item per line.
- Choose reverse order or number order if you need them.
- Click Sort lines.
The usual order is A to Z. Reverse order is Z to A. Number order puts 2 before 10. Blank lines stay in the list.
Frequently asked questions
Does sorting change the input?
The output is a new copy. The input stays as you pasted it until you clear it.
Is the list uploaded?
No. Sorting runs in your browser.
Related text tools
Keep working without leaving the site.
Word counter
Count words, characters, lines, and sentences.
Open toolSlug generator
Turn a title into a lowercase hyphenated slug.
Open toolRemove extra spaces
Collapse repeated spaces and trim each line.
Open toolFind and replace
Replace every match, or use a regular expression.
Open toolShuffle lines
Reorder a list at random, or pick one line.
Open toolRemove line breaks
Join wrapped lines and keep a gap between paragraphs.
Open tool