Skip to content

Sort Lines

Sort lines alphabetically, reverse or randomly.

šŸ”’ 100% private — your files are processed locally and never leave your device.

An organised list is easier to read, search and use, but sorting one by hand is painful past a few items. The Sort Lines tool arranges your lines alphabetically (A–Z or Z–A), or shuffles them randomly, in a single click — turning a jumble into an ordered list instantly.

How to use the Sort Lines tool

  1. Paste your list, one item per line.
  2. Choose a sort: A–Z, Z–A, or random shuffle.
  3. Optionally ignore case for a more natural alphabetical order.
  4. Copy the sorted result.

When sorting earns its keep

Alphabetical order makes names, terms, references and any list far quicker to scan and to find a specific entry in. Reverse order is useful for ranking from highest to lowest when your lines start with numbers or dates. The random shuffle, meanwhile, is perfect for drawing names, randomising questions, or picking an unbiased order for anything from a playlist to a raffle. One tool covers all three common needs.

Tips for tidy sorting

Sorting happens entirely in your browser, so your list stays private no matter what it contains.

Quick reference

Mode Result
A–Z Ascending alphabetical
Z–A Descending alphabetical
Random Shuffled order
Ignore case Optional
Processing Local