Text Line Sorter
Sort pasted lines alphabetically, by length, or numerically, ascending or descending. Free to use, no signup required for occasional use.
What is the Text Sorter?
The Text Sorter takes any block of pasted text and reorders its lines according to the rule you choose: alphabetical order, line length, or numeric value. This is useful for sorting name lists, keyword lists, prices, or any line-based data without opening a spreadsheet. An ascending/descending toggle lets you flip the order instantly.
How to use it
Paste your lines into the box, pick a sort mode — Alphabetical, Length, or Numeric — and toggle Descending if you want the reverse order, then click Sort. The reordered lines appear below, ready to copy.
Frequently asked questions
What does numeric sort do with non-numeric lines?
Lines that don't start with a recognizable number are treated as zero for sorting purposes, so keep numeric lists consistent for best results.
Does sorting remove empty lines?
Yes, blank lines are skipped so they don't clutter the sorted output.
Can I sort by line length?
Yes, choose the Length mode to sort lines from shortest to longest, or longest to shortest with the descending toggle.
