๐Ÿ”ค Text Sorter

Sort Lines Alphabetically

Sort any list of lines alphabetically, reverse alphabetically, by length, numerically, or randomly. Remove duplicates and trim spaces โ€” all with one click.

5 sort modes
Remove duplicates
Case-insensitive option
Numbered preview
โš™๏ธ Sort Options
Case-insensitive
Trim spaces
Remove duplicates
Remove empty lines
Add line numbers
๐Ÿ“„ Input Lines 0 lines
โœ… Sorted Lines
๐Ÿ“‹ Sorted List Preview

๐Ÿ”ค Sort Modes Explained

  • A โ†’ Z: Standard alphabetical order
  • Z โ†’ A: Reverse alphabetical order
  • Shortest First: Sort by character count ascending
  • Longest First: Sort by character count descending
  • Numerical: Sort numbers in correct order (1,2,10 not 1,10,2)
  • Random: Shuffle lines in random order

๐Ÿ’ก Common Use Cases

  • Alphabetizing keyword lists for SEO
  • Sorting email lists or name lists
  • Organizing programming import statements
  • Sorting product or inventory lists
  • Cleaning and deduplicating data exports
  • Ordering to-do lists by priority or name

Frequently Asked Questions

How do I sort a list alphabetically online? +
Paste your list into the input box with one item per line, select your sort order (A-Z, Z-A, by length, numerical, or random), then click Sort Lines. The sorted list appears instantly on the right and can be copied or downloaded with one click.
Can I sort lines and remove duplicates at the same time? +
Yes. Enable the Remove Duplicates option before sorting. The tool will sort your lines and simultaneously remove any duplicate entries. You can choose whether duplicate detection is case-sensitive or case-insensitive using the Case-insensitive toggle.
What is the difference between case-sensitive and case-insensitive sorting? +
In case-sensitive sorting, uppercase letters come before lowercase letters โ€” so "Apple" appears before "banana". In case-insensitive sorting, case is ignored and words are sorted purely alphabetically regardless of capitalization, so "apple" and "Apple" are treated as equal entries.
How does numerical sorting work? +
Numerical sorting treats lines as numbers and sorts them in correct numeric order. Without this, alphabetical sorting gives 1, 10, 2 because "10" starts with "1". With numerical sorting, you get the correct order: 1, 2, 10. This is ideal for sorted lists of numbered items, prices, or rankings.