Text Line Sorter β Free Online Tool
Sort lines alphabetically, numerically, by length, or shuffle them randomly.
About Text Line Sorter
The Text Line Sorter arranges the lines of any list in the order you choose: alphabetically from A to Z or Z to A, numerically by value, by line length, or shuffled into a random order. It is built for tidying name lists, keyword sets, CSV columns, and any data that needs ordering.
An ignore-case option keeps sorting natural so capital and lowercase letters are treated the same. Blank lines are dropped automatically, and the whole process runs in your browser, so your lists stay private and sorting is instant even for long inputs.
How to Use Text Line Sorter
- Paste your list into the input box, one item per line.
- Toggle 'Ignore case' on or off depending on how you want letters compared.
- Click a sort mode: A β Z, Z β A, Numeric, By Length, or Shuffle.
- Copy the sorted result, or click Clear to start over.
Key Features
Sort lines alphabetically (A-Z or Z-A) in one click
Numeric sorting for lists of numbers and values
Sort by line length, shortest to longest
Shuffle mode to randomize line order
Ignore-case option for natural alphabetical sorting
Runs in your browser with instant results and easy copy
Frequently Asked Questions
How does numeric sorting handle non-number lines?
Numeric mode reads the leading number on each line. Lines without a number are treated as zero, so they group together at the start of the order.
What does the 'Ignore case' option change?
With it on, 'Apple' and 'apple' sort together as if they were the same case. With it off, uppercase letters sort before lowercase based on their character codes.
Does the sorter remove blank lines?
Yes. Empty lines are filtered out before sorting so they do not clutter the result.
Is the shuffle truly random each time?
Yes. Shuffle uses a Fisher-Yates style randomization, so you get a fresh random order on every click. All sorting runs locally in your browser.