Word & Text Tools

Alphabetical Sorter

Paste any list and sort it alphabetically A-Z or Z-A, by line length, or shuffle it into random order — with natural number ordering so "item 2" comes before "item 10". Case-insensitive by default, with a one-click copy of the result.

Sorted A → Z

"Natural number order" sorts embedded numbers by value so "item 2" comes before "item 10" instead of the plain alphabetical "item 10" before "item 2".

How to use the sorter

Paste your lines into the box and press a sort button: A-Z, Z-A, shortest-first, longest-first, or shuffle. The result appears below, ready to copy. Three toggles refine the behaviour: "case-insensitive" treats upper and lower case as equal so capitalisation does not scatter your list, "natural number order" sorts embedded numbers by value rather than as text, and "trim and drop blanks" cleans stray spaces and empty lines before sorting.

Why natural number ordering matters

Plain alphabetical sorting compares text character by character, which produces the wrong order whenever numbers are involved: "item 10" sorts before "item 2" because the character "1" comes before "2". Natural ordering, sometimes called human or version sorting, recognises the numeric chunks and compares them by value, so "item 2" correctly precedes "item 10". This is the same logic a well-behaved file manager uses to list "file2, file10" in the order you expect. Leave it on for anything with numbers — file names, versions, addresses, ranked lists — and turn it off only if you specifically want raw character order.

What people sort

Writers and editors alphabetise glossaries, indexes, bibliographies, and reference lists. Developers and analysts sort keys, IDs, imports, and config entries to make them easy to scan and to produce clean diffs. Teachers alphabetise class and reading lists. Marketers order keyword lists and tags. Anyone building a directory, a menu, or a table of contents needs items in a predictable order, and sorting by length is a quick way to find the outliers — the unusually long entry that might be a mistake, or the shortest items worth grouping. Shuffle is the opposite tool: it randomises order for drawing names, randomising quiz questions, or picking a fair sequence.

Tips for reliable results

Always enable "trim and drop blanks" when your list came from a spreadsheet or a copy-paste, because a leading space sorts before every letter and will push an item to the top for no visible reason. Keep "case-insensitive" on for most human-readable lists so that "Apple" and "apple" sit together instead of all capitals clustering ahead of lowercase. If you are sorting to then remove repeats, sort first and follow up with the duplicate line remover, since duplicates become obvious once neighbours are adjacent. And when a sort looks wrong around numbers, check that natural ordering is switched on — it is the single most common cause of a list that is "almost" sorted but has the tens and ones in the wrong places.

FAQ

What is natural number order?

It sorts embedded numbers by their value rather than character by character, so "item 2" comes before "item 10". Plain alphabetical order would wrongly put "item 10" first.

Does it sort case-sensitively?

By default no — upper and lower case are treated as equal so your list is not split into capitalised and lowercase clusters. You can turn case sensitivity on with the toggle.

Can it sort by length?

Yes. Choose shortest-first or longest-first to order lines by character count, which is handy for spotting outliers.

What does shuffle do?

It randomises the order of your lines using a fair shuffle, which is useful for drawing names, randomising questions, or picking an unbiased sequence.

Is my list sent anywhere?

No. Sorting happens entirely in your browser and nothing you paste is uploaded.

More free tools