Sort Lines Alphabetically

Alphabetize, numerically sort, reverse or shuffle any list — one line per item.

Alphabetizing a reference list, ordering product SKUs, ranking rows by a number, or drawing a random order for a giveaway — they're all the same operation: sorting lines. This tool sorts any pasted list instantly with eight modes: A→Z and Z→A, numeric ascending and descending, by line length, reversed, or randomly shuffled.

The alphabetical sort is smarter than a naive character sort: it uses natural ordering, so "item 2" comes before "item 10" (a plain ASCII sort would put 10 first), and the case-insensitive option stops all the capitalized entries from clumping together at the top. Numeric mode finds the first number in each line, which handles lines like "$1,299 – MacBook" or "42 items" without any cleanup. Deduplicate the list first with the duplicate line remover for a clean, sorted result.

How to use the Sort Lines

  1. Paste your list into the input box, one item per line.
  2. Pick a sort mode — alphabetical, numeric, by length, reverse or shuffle.
  3. Toggle Case-insensitive to mix upper- and lowercase entries naturally.
  4. Copy or download the sorted list from the output pane.

Frequently asked questions

Why does "item 10" sort before "item 2" in other tools?

Plain ASCII sorting compares character by character, and "1" comes before "2", so "10" lands before "2". This tool uses natural (numeric-aware) collation, which sorts "item 2" before "item 10" the way a human would.

How does numeric sort work on lines with text in them?

It extracts the first number found anywhere in each line (including negatives and decimals) and sorts by that value. Lines with no number at all sink to the bottom. "Price: $12.50" sorts by 12.5.

Is the shuffle truly random?

It uses a Fisher–Yates shuffle, which gives every ordering equal probability — good enough for prize draws, random team orders and quiz questions. Click the mode again to reshuffle.

Does sorting handle accented characters?

Yes. Sorting uses your browser's locale-aware collation, so accented letters like é and ü are ordered naturally for your language rather than dumped at the end like in a raw byte sort.

Is my list uploaded anywhere?

No — sorting runs entirely in your browser, so client lists and internal data stay on your device.