Sort lines by their length with trim, dedupe and empty-line removal built in. Ties are alphabetized.
Paste a list, sort by length.
Paste your list — one item per line.
Pick shortest-first or longest-first.
Optionally trim, dedupe and remove empty lines.
Hit Sort by Length and copy the result.
Built for speed, privacy and reliability — on any device.
One click flips the order — perfect for trimming titles or finding long entries.
Trim lines, drop duplicates and remove empty lines in the same pass.
Equal-length lines are sorted alphabetically, so results stay predictable.
Sorting runs locally — your lists never leave the browser.
No account, no limits.
Alphabetically — so the same input always produces the same output.
Yes — with "trim each line" on, leading and trailing spaces are removed before lengths are compared.
Yes — switch the order dropdown to "Longest first".
No. Sorting runs entirely in your browser.
The tool works in all modern browsers including Google Chrome, Mozilla Firefox, Microsoft Edge, Safari and Opera. We recommend keeping your browser up to date for the best experience.
Step-by-step guide with screenshots and tips.
Read guide →Step-by-step guide with screenshots and tips.
Read guide →Step-by-step guide with screenshots and tips.
Read guide →Step-by-step guide with screenshots and tips.
Read guide →