Sort lines of text alphabetically, numerically, or by length online for free. Organize lists, data, and content instantly. No signup required.
First time here? Paste your text with lines to sort Your input is processed locally and disappears when you close the tab.
Putting a list in order shouldn't mean dragging lines around by hand. Our free tool to sort text lines online reorders any list the instant you pick a mode — alphabetically A to Z or Z to A, by line length, numerically, in reverse, or with a truly random shuffle — showing a live preview beside your input.
It's the fastest way to sort lines alphabetically for names, URLs, or reference lists, and the numeric mode orders values correctly so 2 comes before 10 instead of after it. Turn on natural, numeric-aware sorting to handle mixed text-and-number entries the way a human would, and use this text line sorter to clean up as you go: it can drop blank lines and remove duplicates in the same pass. Line counts for both input and output update live, and you can copy or download the sorted result as a .txt file.
Because it all runs in your browser, your data never leaves your computer. It works hand in hand with the Duplicate Line Remover for deeper cleanup, the Case Converter to normalize capitalization first, or the Word Counter to size up your list.
Paste your text with lines to sort
Select the sort order
Toggle options like case sensitivity and blank line removal
Copy the sorted result