Sort lines
Sort lines of text alphabetically, in reverse, by length or backwards, with numbers in natural order.
Blank lines
Sort lines
9 lines in, 6 lines out: removed 3 blank lines.
Missing a feature or found a bug in Sort lines? Tell me on X (@_andrewtran) or by email.
How to use Sort lines
- Paste the lines to sort.
- Choose A–Z, Z–A, Length or Reverse.
- Copy or download the sorted lines.
Questions and answers
Are numbers sorted properly?
Yes. "item 2" comes before "item 10", as a person would expect.
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Related tools
Text cleaner
Trim spaces, remove blank and duplicate lines, sort lines, straighten quotes and strip HTML from messy text.Remove duplicate lines
Remove repeated lines from a list or text, keeping the first of each, with or without matching case.Remove empty lines
Delete every blank line from a text, including lines that only hold spaces, in one step.Word counter
Count words, characters, sentences and paragraphs as you type, with reading time and top words.