Line Sorter

Sort lines of text alphabetically, by length or numerically, or shuffle them randomly. Organize lists and pasted text in one click.

Input text

Sort by

Output

How to sort lines of text

  1. Paste your list or text into the input box, one item per line.
  2. Choose a sort order: A to Z, Z to A, by length, numeric or random.
  3. Optionally remove empty lines before sorting.
  4. Click Sort Lines and copy the result.

FAQs

How does numeric sorting handle text?

Lines that start with a number are sorted by value, while lines that are not numbers are moved to the end and sorted alphabetically.

What does the Random option do?

It shuffles the lines into a random order using a Fisher-Yates shuffle, so every arrangement is equally likely.

Does my text leave my device?

No. Sorting runs entirely in your browser, so your data is never uploaded or stored anywhere.

Is this tool free?

Yes. All Handio tools are free with no sign-up and no limits on how much text you process.

Related Tools

Why use Line Sorter?

Sorting a list by hand is slow and error-prone. This tool arranges your lines instantly in the order you choose, so you can organize names, keywords and data before you use them.

Tips and Limits

A to Z and Z to A sort alphabetically with locale-aware ordering, while Numeric sorts by value and moves non-numeric lines to the end. Enable Remove empty lines to skip blank lines, and everything is processed locally.