Alphabetical order
Paste banana, apple and cherry on separate lines, choose "A to Z", and Sort returns apple, banana, cherry.
Sort lines alphabetically, numerically or by length, or shuffle a list — free and instant.
About
Sorts a list of lines alphabetically, numerically, by length, in reverse, or shuffled, with options to drop blanks and duplicates.
Developers use it to alphabetize a list of names or values before pasting them into code, while students sort references or bibliography entries. It's one of many free text tools on Toolapt, and like every tool here, it's free to use with no sign-up and no limit on how many times you run it.
Examples
3 worked examples
Paste banana, apple and cherry on separate lines, choose "A to Z", and Sort returns apple, banana, cherry.
Paste "Item 10", "Item 2" and "Item 1" and choose "Number, low to high" to get Item 1, Item 2, Item 10 instead of plain alphabetical order.
Paste watermelon, fig and kiwi and choose "Length, short to long" to get fig, kiwi, watermelon.
FAQ
Quick answers to common questions about the Line Sorter.
It sorts a list of lines into one of several orders: alphabetical, numeric, by length, reversed, or a random shuffle.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. Your list is processed entirely on your own device — nothing is sent to a server.
Numeric sort compares the leading number of each line; lines without a recognizable number are treated as having no numeric value and sort accordingly.
Yes. Turn on "Remove duplicates" to drop repeated lines as part of the same sort operation.
Yes. Choosing "Shuffle" and clicking Sort again randomizes the order freshly each time.
Yes. Turn on "Case sensitive" so uppercase and lowercase letters are compared strictly rather than treated as equivalent.
It's built for everyday lists; extremely large lists are still handled but may take a moment longer to sort.
Did Line Sorter work for you?