Sort Text
Sort lines alphabetically, by length, or shuffle them at random.
Sorts use natural ordering, so “item2” comes before “item10”. Shuffle randomises the order. Everything runs in your browser.
How to sort your text
Paste your lines into the box, then choose an order: A→Z, Z→A, By length, or Shuffle. The sorted result appears below. Turn on Case sensitive if upper and lowercase should be ordered separately. Click Copy result to grab it.
When sorting helps
Alphabetising a glossary or name list, grouping short and long entries, or randomising an order for fairness. Natural numeric sorting keeps versioned or numbered items in the order a human expects.
Questions
Does it sort numbers correctly?
Yes. Sorting uses natural ordering, so "item2" comes before "item10" instead of the plain alphabetical order that would put "item10" first. It works for mixed letters and numbers.
What does the Shuffle option do?
Shuffle randomly reorders your lines using an unbiased Fisher–Yates shuffle — handy for randomising a draw, a playlist, or a set of test cases. Click it again for a fresh order.