Text Sorter & Reverser
Sort lines alphabetically, by length, reverse order, or shuffle randomly. Free online text sorter with multiple sorting modes.
Output will appear here...
What is Text Sorter & Reverser?
A text sorter rearranges lines of text according to various criteria: alphabetical order (A-Z or Z-A), line length (shortest to longest or vice versa), reverse order, or random shuffle. This is useful for organizing lists, sorting data entries, randomizing quiz questions, and preparing ordered datasets for import.
How to Use
- Paste your text (one item per line) in the input area
- Select a sort mode: A-Z, Z-A, Shortest first, Longest first, Reverse, or Shuffle
- Toggle 'Remove duplicates' to eliminate repeated lines before sorting
- The sorted result appears instantly in the output panel
Examples
Alphabetical sort
Sort by line length
Related Tools
Remove Duplicate Lines
Remove duplicate lines from text instantly. Free online deduplication tool with options for case sensitivity and sorting.
Text Truncator
Truncate text to a specified length with optional ellipsis. Free online text truncator with customizable max length.
Find and Replace
Find and replace text with support for case-sensitive, whole word, and regex matching. Free online find and replace tool with live preview.
Line Counter
Count total lines, blank lines, and non-blank lines in your text instantly. Free online line counter with detailed line statistics.
Frequently Asked Questions
Is the sorting case-sensitive?
No. The sorting is case-insensitive by default, so 'apple' and 'Apple' are treated as equivalent. They appear together in the sorted output.
What does Shuffle mode do?
Shuffle mode randomly rearranges all lines. This is useful for randomizing lists, quiz questions, playlist orders, or assigning random priorities to tasks.
Can I sort numbers correctly?
Standard alphabetical sort treats numbers as text (10 comes before 2). For numeric sorting, ensure your lines contain only numbers. Line-length sorting can also help order numeric values by their string length.