Text Sorter
Sort lines alphabetically, numerically, by length or randomly. Reverse support.
Input
Output
Sort Lines of Text Online
Sort any list of text lines alphabetically (A–Z or Z–A), numerically, by line length, or randomly. Perfect for sorting keyword lists, name lists, log entries, or any multi-line content that needs ordering without using a spreadsheet.
Sort Methods
- A → Z — alphabetical ascending (default). Case-insensitive when the toggle is on.
- Z → A — reverse alphabetical order.
- Numeric — sorts lines by their numeric value. Lines without a number sort last.
- Length ↑ — shortest lines first.
- Length ↓ — longest lines first.
- Random — shuffles lines randomly. Click Reshuffle for a new order.
Common Uses
- Alphabetizing lists of names, keywords, or items
- Sorting import statements or CSS properties alphabetically
- Ordering log entries by numeric code or priority
- Randomizing a list for a draw or experiment