Sort Lines
Sort text lines alphabetically, by length, in reverse, or randomize their order.
Sorted Text
How to Use
Paste your text with one item per line, select your preferred sort method, and click 'Run Tool'.
Frequently Asked Questions
You can sort A-Z (alphabetical), Z-A (reverse alphabetical), by line length (ascending or descending), reverse the original order, or randomize lines.
The alphabetical sort is case-insensitive by default, so 'Apple' and 'banana' sort naturally without uppercase letters being prioritized.
The tool sorts as text by default. For purely numeric lines, alphabetical sort works correctly for same-length numbers. For mixed content, results are sorted lexicographically.