Text Sorter
Sort lines alphabetically, by length, or in reverse order.
Sort lines alphabetically, by length, reverse order, or shuffle them randomly.
About Text Sorter
Sort lines of text alphabetically (A-Z or Z-A), by length, in reverse order, or shuffle them randomly. Turn on natural order to sort numbered items like file2 before file10, and drop empty lines as you go. Handles lists, CSV rows, log entries, and any line-separated text.
What this tool does
Paste any text with line breaks and sort it. You can sort alphabetically in either direction, order by line length (shortest to longest or the reverse), reverse the original order, or shuffle everything randomly. It handles everything from grocery lists to server logs.
How to use it
Paste your text into the input area. Pick a sort mode and the output updates instantly. Toggle 'Trim whitespace' to ignore leading and trailing spaces, 'Natural order' to keep numbered items in human order (file2 before file10), and 'Remove empty lines' to drop blanks. Copy the result with one click.
Common use cases
- Alphabetizing lists for documentation or README files
- Sorting CSS properties within a rule
- Ordering imports or dependencies
- Cleaning up data exports
- Reversing a log file to see newest entries first
- Randomizing a list for picking names or assigning order