Sort Lines
Paste a list of lines to instantly sort them alphabetically or by length — entirely in your browser.
Result will appear here
Frequently Asked Questions
How does alphabetical sorting handle numbers and symbols?
It uses standard locale-aware string comparison, so numbers and symbols sort by their character code position relative to letters.
Can I sort by line length instead of alphabetically?
Yes — choose "Shortest first" or "Longest first" to sort by character count instead.
Does sorting remove duplicate lines?
No — sorting only reorders lines. Use the separate Remove Duplicate Lines tool if you also need to dedupe.
Explore CodeSpeedTest