Sort Text Lines arranges every line in your text alphabetically (A→Z or Z→A) or numerically using natural sort, so "item2" comes before "item10". Switch to word-level scope to sort the words within each line instead, leaving your line structure unchanged.
Works as both a line sorter and a word sorter — switch the sort scope to reorder words within each line instead of reordering lines.
Your text never leaves your browser. Everything is processed locally on your device.
Share:
Browser-only processing
Total lines
0
Non-blank lines
0
Blank lines
0
Words
0
Characters
0
Letters
0
Sentences
0
Input text
Result text
How do you use the sort text lines tool?
1. Add your text.Paste it directly, upload a file, or drop a TXT/CSV/JSON file onto the input box.
2. Adjust the options.Use the controls above the editor to fine-tune how the tool behaves.
3. Copy or download the result.Your cleaned text is ready instantly, with nothing ever sent to a server.
Need to remove duplicate lines too? Try the full Text Dedupe, which adds case-insensitive matching, consecutive-only mode, sorting, and large-file support.