Text Sorter: Sort Lines Alphabetically, Remove Duplicates | Free
7 usesText Sorter Tips
A→Z and Z→A Sorting
Sort text lines in ascending or descending alphabetical order with one click.
Remove Duplicates
Automatically remove duplicate lines while sorting to get a unique list.
Random Shuffle
Randomize the order of lines — great for creating randomized lists or playlists.
Sort Options
Case-insensitive sorting, numeric sort, trim whitespace, and remove empty lines.
Frequently Asked Questions
How do I sort text lines?
Paste your text (one item per line), click A→Z for ascending or Z→A for descending sort.
Can I remove duplicate lines?
Yes, check the Remove duplicates option before sorting.
Does it support numeric sorting?
Yes, check the Numeric sort option to sort numbers correctly (1, 2, 10 instead of 1, 10, 2).
Is this free?
Yes.
How can I sort a list alphabetically and ignore whether letters are uppercase or lowercase?
Our free Text Sorter provides a 'Case-insensitive' option specifically for this purpose. Simply paste your text, then check the 'Case-insensitive sort' checkbox before clicking either A→Z for ascending or Z→A for descending order. This ensures that entries like 'Apple' and 'apple' are treated as identical for sorting order, giving you a truly alphabetical list regardless of capitalization.
How can I quickly randomize the order of lines in a list or text?
Our Text Sorter includes a 'Shuffle randomly' option perfect for this. Simply paste your list, one item per line, into the input box. Then, check the 'Shuffle randomly' checkbox and click the 'Sort' button (either A→Z or Z→A, as the sort direction is ignored when shuffling). Your text lines will instantly be reordered into a completely random sequence, useful for games, tests, or drawing random items.
What happens if my text includes numbers and letters mixed together?
When you have lines with both letters and numbers, the Text Sorter prioritizes the letters by default. For instance, 'Item 10' will come before 'Item 2' unless you enable the 'Numeric sort' option. Enabling it ensures 'Item 2' correctly precedes 'Item 10' in your sorted list. Always check 'Numeric sort' for accurate ordering of mixed content.
What's the maximum number of lines I can sort at once?
There's no hard line limit, but we recommend keeping it under 10,000 lines for smooth performance. Pasted 50,000 lines once and it worked, just took about 3 seconds. Browser memory matters here. If you're sorting a huge CSV export, try splitting it into chunks of 5,000 lines first. Your browser will thank you.
Why does my sorted list have blank lines at the top?
Blank lines get sorted to the top in ascending order because empty strings come before any text. Check your input for trailing newlines or empty rows. The tool treats each line literally, so a blank line is just an empty entry. Paste your text and hit sort to see if blanks appear. If they do, delete them manually before sorting again. A quick tip: paste into a spreadsheet first to spot empty rows.
How to Sort Text
- Paste text with one item per line
- Select sorting options
- Click A→Z, Z→A, or Shuffle
- Copy the sorted result