TontonTools

Text Sorter

Sort lines alphabetically, reverse or randomize — any list, instantly.

100% Free No signup Privacy-friendly Text Tools
Updated Sep 2026
Share X / Twitter Facebook LinkedIn WhatsApp

How to use Text Sorter

  1. Paste your list into the box, one item per line.
  2. Pick the order: A–Z, Z–A, reverse the current order, or random shuffle.
  3. Review the output — re-shuffle as many times as you like for random draws.
  4. Copy the sorted list back to your document or spreadsheet.

What is Text Sorter?

A text sorter rearranges the lines of a list: alphabetically A–Z or Z–A, reversed from their current order, or shuffled randomly. Paste a list, pick the order, copy the result.

Alphabetizing by hand invites mistakes the eye can't catch in a long list — one out-of-place name in a 90-line roster is nearly invisible. And random order has real uses beyond parlor tricks: fair prize draws, unbiased task assignment, randomized question order, and shuffling any queue where "first pasted" shouldn't mean "first served."

About the Text Sorter

Paste your list — one item per line — choose a sort mode, and the reordered list is ready to copy.

A–Z handles the everyday cases: name rosters, bibliography entries, glossary terms, keyword lists, file or package names. Z–A gives you reverse-alphabetical when a style guide or ranking calls for it. Reverse flips the existing order (newest-first ↔ oldest-first without re-sorting). Random shuffles fairly — pick a winner from the top of a shuffled list, or randomize presentation order for a class.

Sorting runs instantly in your browser; lists with names or client data never leave your device.

Frequently Asked Questions

Text-wise, character by character — so "item10" sorts before "item2" because 1 < 2 at the third character. Zero-pad numbers (item02, item10) when you need natural numeric ordering.
It can — strict character-code sorting places all capitals before lowercase (Z before a). If a mixed-case list sorts oddly, normalize the case first with our Case Converter.
Yes for informal draws — every ordering is equally likely, so taking the top line of a shuffled list is an unbiased pick. Regulated lotteries need audited tooling, but office and social-media draws don't.
Z–A sorts alphabetically backwards regardless of current order. Reverse just flips the list as-is — last line first — preserving whatever logic the original order had.
A plain sort uses the first character, i.e. the first name. Rewrite entries as "Last, First" (find-and-replace or a spreadsheet split) before sorting to alphabetize by surname.

Learn more

How to Sort Lines of Text Alphabetically or Numerically

Need a list in order? Here is how to sort lines of text alphabetically, numerically or in reverse — instantly.

Read the guide

We use cookies for analytics and to keep the tools free via ads. See our Privacy Policy.