π Sort Lines Online
Sort text lines alphabetically, by length, reverse, shuffle, or natural order. Process runs entirely in your browser.
Input
Sorted Output
How the Line Sorter Works
Paste your text into the input area, choose a sort mode, and click Sort Lines. The result appears instantly in the output area.
Sort Modes Explained
- A β Z β Standard alphabetical ascending order
- Z β A β Reverse alphabetical descending order
- Length (Short β Long) β Shortest lines first
- Length (Long β Short) β Longest lines first
- Reverse Order β Flips the line order (last line becomes first)
- Shuffle / Randomize β Randomly shuffles all lines
- Natural Sort β Alphabetical but treats numbers numerically (e.g. item2 before item10)
Options
- Case-insensitive β Ignores uppercase vs lowercase when comparing lines
- Trim whitespace β Removes leading and trailing spaces from each line before sorting
- Remove empty lines β Strips blank lines from the output