Loading…

Text tools06.07

Sort List Alphabetically

Sort a list from A to Z or Z to A, by length or in natural order, remove duplicates and blank lines, or shuffle it randomly.

Back to Text tools

Up to 20,000 lines. You can paste a column straight from Excel or Google Sheets.

This runs entirely in your browser. We don’t store any data.

Sorted list

Paste or type a list, one item per line.

How to use it

  1. 01

    Paste your list into the box, one item per line (names, words, codes…).

  2. 02

    Choose a sort order. “Natural” sorts numbers by their value, so “track 2” comes before “track 10.”

  3. 03

    Check any cleanup options you need, like removing duplicates or blank lines.

  4. 04

    Copy the result with the button. “Shuffle” puts your list in random order, which is handy for raffles and picking turns.

How it works

Alphabetical sorting follows real language rules (Intl.Collator), so a name with an accent like “Élodie” sorts with the other E’s instead of ending up after Z, which is what basic character-code sorting does.

With “Ignore case and accents” turned on, “Emma,” “emma” and “ÉMMA” count as the same item when removing duplicates, and the first one is kept.

Shuffling uses your browser’s cryptographic random number generator and the Fisher–Yates algorithm, so every possible order is equally likely.

Examples

  • Class roster

    “Mark, emma, Liam, Élodie, Ava” becomes “Ava, Élodie, emma, Liam, Mark.”

  • Deduplicating emails

    Paste in a list of email addresses that was copied twice, and the duplicates disappear, even if the capitalization is different.

  • Natural order

    “file 10, file 2, file 1” becomes “file 1, file 2, file 10.”

Frequently asked questions

Can I sort a column from Excel or Google Sheets?

Yes. Copy the column and paste it here (each cell goes on its own line), sort it, then paste the result back into your spreadsheet.

Is my list uploaded anywhere?

No. Everything runs in your browser, so your list never leaves your device.