Sort lines alphabetically
Paste a list and put it in alphabetical order, number order, by length or at random, then copy it back.
How to use it
- Paste the list, one item per line.
- Pick the order and the alphabet. The sorted list appears below.
- Copy the result. For a random order, press Shuffle again until you like it.
Alphabetical order that follows the language
Sorting by raw character codes puts “Zebra” before “apple” and “Émile” after “zoo”. This page sorts with your browser’s language rules instead (the Unicode collation algorithm), so case and accents fall where a dictionary would put them.
Alphabets differ. In Turkish, ç comes after c, ğ after g, ı before i and ş after s, so “çay” sorts after “cuma”. Pick the Turkish alphabet for Turkish lists; the English setting works for most languages written in Latin letters.
Numbers, lengths and shuffles
Plain alphabetical order puts “item 10” before “item 2”, because it compares one character at a time. Numbers in order reads the digits as numbers, so file names and chapter lists come out as 1, 2, 10.
Length sorts count visible characters. Shuffle uses your browser’s cryptographic random generator, so every order is equally likely; it is fine for a fair draw from a list.
Other list tools
To remove repeats but keep the original order, use remove duplicate lines. To change wording across the list, use find and replace.
Related tools
Questions people ask
How do I sort a list alphabetically in Word or Google Docs?
In Word, select the lines and choose Home > Sort. In Google Docs there is no built-in sort; paste the list here, sort it and paste it back.
Why does “10” come before “2”?
Alphabetical order compares character by character. Choose Numbers in order to compare whole numbers instead.
Are capitals sorted separately?
No. Upper and lower case sort together, as in a dictionary. Tick Capitals before lowercase to put “Apple” before “apple” when the words are otherwise the same.
Is my list sent anywhere?
No. Sorting happens in your browser.