Text Sorter

Alphabetise lines A–Z, Z–A, by length or shuffle them randomly. Sort text lines alphabetically (A–Z or Z–A), numerically, by length, or shuffle randomly. Options for case-insensitive and natural sorting. Free online.

This tool runs 100% in your browser. Your input is never sent to any server — you can even go offline after the page loads.

About the Text Sorter

Alphabetising a list of names, sorting product SKUs or putting song titles in order takes one click. This sorter arranges your lines A→Z or Z→A, sorts numerically aware of values (so 2 comes before 10), orders by line length, reverse-flips any order, or shuffles into a random sequence for fair draws. Case-insensitive and trim options stop formatting quirks from polluting the alphabetical order.

How to use the Text Sorter

  1. Paste one item per line into the box.
  2. Pick a sort mode — alphabetical, numeric, length or shuffle.
  3. Adjust case-insensitive or trim options if needed.
  4. Click Sort and copy your ordered list.

Key features

What is natural numeric sorting?
It reads whole numbers inside text as numbers, so "file2" sorts before "file10". Plain alphabetical sorting would put "file10" first because "1" comes before "2".
Can I shuffle names for a raffle?
Yes — the shuffle mode randomises line order, which is a fair way to order entries before picking winners.

Related Text & Writing tools

More utilities from the same category.

View all →