Sort Lines: Alphabetical, Numerical, and Reverse Order
Sorting lists alphabetically or numerically is one of the most common text-cleanup tasks. This tool sorts pasted lines and lets you choose direction (ascending/descending), case-handling, and natural number ordering.
Default sorting is character-by-character left-to-right. That's correct for most use cases but produces strange results with numbers — '10' sorts before '2' because '1' < '2' character-wise. Natural sort fixes this by treating embedded numbers as numbers, putting '2' before '10' as expected.
Sort options
- •Alphabetical (case-sensitive) — uppercase letters sort before lowercase
- •Alphabetical (case-insensitive) — most common everyday sort
- •Reverse — Z to A or large to small
- •Natural sort — '2' before '10', for filenames with numbers
- •Sort by length — shortest first or longest first
Extended FAQ
How does it handle Korean characters?
Korean sorts by Unicode order, which matches the modern Hangul (한글) alphabetical order. So 가 < 나 < 다, etc., as expected.
Does it remove duplicates?
Sorting itself doesn't remove duplicates. Use the dedup tool first if you want unique sorted output.
Are my pasted lines stored?
No — runs entirely in your browser.
