loot.tools

Text Sorter

Sort lines of text alphabetically (A-Z or Z-A), by length, in reverse order, or shuffle them randomly. Handles lists, CSV rows, log entries, and any line-separated text.

Sort lines alphabetically, by length, reverse order, or shuffle them randomly.

Input (0 lines)
Output

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 when sorting. 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.

© 2026 loot.toolsYour data stays in your browser.