Sort Text Lines
Sort lines of text alphabetically, reverse, or randomly, with options to remove duplicates. Free online line sorter.
0
Original lines
0
Result lines
0
Duplicates removed
How to use the Sort Text Lines
- Paste your list — one item per line — into the box.
- Click A → Z or Z → A to sort alphabetically, or use Reverse order / Randomize.
- Toggle case-insensitive, remove duplicates, or trim lines to fine-tune the result.
- Check the stats for how many lines changed, then copy the sorted list.
Frequently asked questions
What does “case-insensitive” sorting do?
By default, sorting is case-sensitive, so uppercase letters sort before lowercase ones. Turning this on ignores letter case, so "banana" and "Banana" are treated the same when comparing.
How are duplicates detected?
Two lines are considered duplicates if they’re identical — or identical ignoring case (with case-insensitive on) and ignoring leading/trailing spaces (with trim on). Only the first occurrence of each is kept.
Does Randomize give the same shuffle every time?
No. Each click produces a fresh, unpredictable shuffle of your list in a different order.
Is my list uploaded anywhere?
No. Sorting, deduplication, and shuffling all happen locally in your browser — your list never leaves your device.