Sort Lines Online
Input
Output
Free Online Line Sorter
Sort lines of text alphabetically, numerically, by length, or randomly. Supports ascending and descending order, case-insensitive sorting, whitespace trimming, and empty line removal.
How to Use
Paste your text into the input field (one item per line), choose your sorting options, and click Sort. The sorted result appears instantly in the output field.
Sort Types
- Alphabetical — Sorts lines by their text content using locale-aware comparison.
- Numeric — Sorts lines by their leading numeric value. Non-numeric lines are placed at the end.
- By Line Length — Sorts lines from shortest to longest (or vice versa).
- Random Shuffle — Randomizes the order of lines using cryptographically secure randomness.
Frequently Asked Questions
Is my data safe?
Yes. All sorting happens locally in your browser. Your text is never sent to any server.