Sort Lines
Sort lines alphabetically, by length, numerically, in reverse, or shuffle randomly.
Sort Lines
Input
Output
How to Use
- Paste your list of lines into the input box.
- Select a sort mode: A–Z, Z–A, shortest first, longest first, numeric, or shuffle.
- Toggle "Case insensitive" to treat uppercase and lowercase letters as equal.
- Enable "Remove duplicates" to deduplicate while sorting.
Frequently Asked Questions
QWhat does numeric sort do?
Numeric sort treats each line as a number and sorts in ascending numeric order. "10" sorts after "9" — unlike alphabetical sort where "10" would sort before "9".
QCan I remove duplicates while sorting?
Yes — enable the "Remove duplicates" toggle and duplicates will be removed from the output after sorting.
About This Tool
Sort Lines processes text entirely in the browser. Numeric sort treats each line as a number and sorts in ascending order; non-numeric lines are placed at the end.