Line Sorter
The Sort Lines utility organizes lists of text alphabetically or numerically. You can choose ascending or descending sort orders, toggle case sensitivity, sort by line length, reverse current order, and copy the sorted output. All sorting executes directly in your browser on your device, ensuring your text lists are never uploaded.
Reorder any list of lines with a single click. Sort A to Z or Z to A, order by line length, reverse the existing order, or shuffle randomly. Optional toggles let you sort case-insensitively and strip blank lines first. Great for tidying lists, keywords, and exports.
Examples
banana apple cherry
apple banana cherry
How it works
A to Z and Z to A use a natural sort: numbers inside a line are compared by value, so “item 2” comes before “item 10” instead of after it. “By length” puts the shortest line first and sorts lines of equal length alphabetically.
- Reverse flips the current order without sorting.
- Shuffle puts the lines in a random order, different each time.
- Remove blank lines drops empty lines before sorting, so they do not gather at the top.
Each line is treated as a single item. The tool does not sort by a column inside the line or by date, and shuffle uses the browser’s ordinary random numbers, which is fine for lists and games but not for anything security-related.
How to use Line Sorter
Why use this tool
Frequently asked questions
Yes. Alphabetical sorting is numeric-aware, so item2 comes before item10 as expected.
It uses a Fisher-Yates shuffle for an unbiased random order each time you select it.
Found a bug or have an idea?
ToolOrbit is actively developed — feedback directly shapes what gets built next.
Send feedback