Sort Lines by Length
Put lines in order by how many characters each line has, shortest first or longest first. Your text stays in your browser.
1 Paste your text and pick the options
2 Your answer
Your answer shows here as you type.
How to use the Sort Lines by Length
- Paste your lines, one per line.
- Choose shortest first or longest first.
- Copy the sorted lines from the result box.
Frequently asked questions
Does it change the lines?
No. It only changes their order. The text of each line stays the same.
Are blank lines kept?
Yes. A blank line has zero characters, so it goes to the top when sorting shortest first.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.