🔤 Sort a list
Eight ways to reorder a list, from plain A-Z to a genuinely random shuffle. Pick one and the result updates as you type.
Sort lines
Also do this, in one go
Tick anything else you need and it runs on the same text — no reloading, no copying between pages. Steps run top to bottom.
Everything runs inside your browser. Nothing you paste is uploaded or stored.
Sorting that handles numbers properly
Plain alphabetical sorting puts item10 before item2, because it compares character by character and 1 comes before 2. That is almost never what anyone wants. A-Z here compares embedded numbers as numbers, so item2 lands where you expect.
If your lines are prices, scores or quantities, the two numeric options read the first number in each line instead. Lines with no number in them are pushed to the bottom rather than scattered through the results.
The random shuffle is actually random
A surprising number of shuffle tools sort the list with a comparison that returns a random answer each time. That produces a rearranged list, but not an evenly random one — some orders come up far more often than others. This uses a Fisher-Yates shuffle, where every possible order is equally likely. If you are drawing a giveaway winner or assigning people to groups, that difference is the whole point.
Reverse is not the same as Z-A
Z-A sorts alphabetically and then flips it. Reverse current order leaves the sorting alone and simply turns your list upside down — last line first. That is what you want for a chronological list you need newest-first, where alphabetical order would be meaningless.
Combine it in one pass
Sorting usually is not the only thing a messy list needs. Under the extra steps you can strip duplicates, drop blank lines, and tidy stray spaces at the same time, in one go, without copying the text into a second tool and back.
Other tools you might need next
See all Content & Writing tools, or browse every free tool on the site.