Free Online Line Sorter
Paste any list of lines and sort them alphabetically, by length, in reverse order, or shuffle randomly. Options for case-insensitive sorting, duplicate removal, and whitespace trimming.
Input (0 lines)
Output (0 lines)
Sort Mode Reference
A → Z
Sorts lines in ascending alphabetical order using locale-aware string comparison.
Z → A
Sorts lines in descending alphabetical order.
Short → Long
Sorts by character count, shortest lines first.
Long → Short
Sorts by character count, longest lines first.
Reverse Order
Reverses the current order of lines without any sorting — the last line becomes the first.
Shuffle
Randomises the order of lines using a Fisher–Yates shuffle.
Common Use Cases
- Alphabetise a list: Sort country names, product names, or any plain list for readability.
- Deduplicate data: Paste lines from multiple sources and remove duplicates in one click.
- Sort config files: Alphabetise CSS properties, JSON keys (one per line), or import statements.
- Log file processing: Reverse log lines to show the most recent entries first.