Toolerax logoToolerax

Text Sorter

Sort lines A–Z, by length, reverse or shuffle.

100% private — runs in your browser, nothing is uploaded.

How to use the Text Sorter

  1. 1
    Paste your lines

    Add your lines, one item per row.

  2. 2
    Pick a sort order

    Sort A–Z, Z–A, by shortest or longest, reverse the order, or shuffle randomly.

  3. 3
    Copy the result

    Copy the reordered lines with one click.

Examples

InputOutput
banana apple cherryapple banana cherry
one two threethree two one

Free online text sorter

This line sorter arranges lines of text alphabetically (A–Z or Z–A), by length, in reverse, or in random (shuffled) order. It is handy for organising lists, names, keywords, CSV columns and any line-based data.

Sorting options

  • A → Z / Z → A — alphabetical order.
  • Shortest / Longest first — by line length.
  • Reverse — flip the current order.
  • Shuffle — randomise the lines.

Frequently Asked Questions

How do I sort a list of lines?

Paste your lines (one per row) and click A → Z or Z → A. You can also sort by length, reverse the order, or shuffle the lines randomly.

Does it change my text?

It only reorders whole lines — the content of each line stays the same. Everything runs in your browser.

Is the sorting case-sensitive?

Sorting uses your browser's locale comparison, which generally groups upper and lower case together in a natural order rather than putting all capitals first.

Can I randomise a list?

Yes. Click Shuffle to put the lines in a random order — handy for picking a random winner or randomising quiz questions.

From the blogHow to Sort a List AlphabeticallyHow alphabetical sorting really works, why numbers sort in the wrong order, natural sort, case sensitivity, accented letters, and how to sort a list correctly.Read the full guide

Related tools