01 / Natural
Numbers in order
"Chapter 2" before "Chapter 10", not after it, like a person would sort.
Free tool
Paste a list or open a text file, one item per line or separated by commas, and it is sorted in alphabetical order as you type. Sort A to Z or Z to A, by the last word to order names by surname, by length or by the number in each line, with the alphabet rules of your language. Numbers go in number order, so "item 2" comes before "item 10". Remove duplicates, blank lines and extra spaces, with or without sorting, and shuffle, reverse or number the list.
Need a custom tool, app or website? Contact us →Sorted in your browser. Nothing is sent anywhere.
Sorted the way people expect
01 / Natural
"Chapter 2" before "Chapter 10", not after it, like a person would sort.
02 / Names
Sort by the last word to put "Jane Austen" under A.
03 / Clean
Duplicates, blank lines and stray spaces go, and you see how many were removed.
Guide
An alphabetize list tool puts the items of a list in alphabetical order for you, from A to Z or from Z to A. This one sorts as you type, can order names by surname, keeps numbers in number order, follows the alphabet of the language you pick, and cleans the list at the same time by removing duplicates, blank lines and stray spaces. It also shuffles, reverses or numbers a list, or cleans it without sorting.
Your settings are remembered in this browser, so the next list is sorted the same way. The list itself is not stored.
The box starts with eight lines: banana, Apple, cherry, The Matrix, item 10, item 2, apple and Date. With the default settings the result is Apple, banana, cherry, Date, item 2, item 10, The Matrix, and the status line reports 7 items with 1 removed. Three things happened:
| Option | On | Off |
|---|---|---|
| Numbers in number order | 2, 9, 10, 100 | 10, 100, 2, 9 (digit by digit) |
| Ignore "the", "a" and "an" | The Matrix sorts under M | The Matrix sorts under T |
| Capitals matter | Apple and apple are both kept, Apple first | Apple and apple count as the same item |
| Remove duplicates | Each item appears once | Repeats stay in |
| Remove blank lines | Empty lines are dropped | Empty lines sort to the top |
| Trim spaces | Spaces at the start and end are cut | A leading space can push an item to the top |
| Number the result | 1. Apple, 2. banana, 3. cherry | Items only |
Items that start with a number come before items that start with a letter. Remove duplicates treats an accented spelling as a different item, so café and cafe are both kept.
Languages put letters in different places. In German, Ä sorts with A, so Äpfel comes right after Apfel. In Swedish, Å, Ä and Ö are their own letters after Z, so Äpfel goes to the end. Alphabet rules uses the sorting rules built into your browser for the language you pick, so the order matches what a reader of that language expects. Your browser's language is the default, and only the languages your browser can sort by are listed. With English rules, accented letters sort with their plain letter, so Émile comes next to eagle rather than after Z.
Pick The last word under Sort by and each line is sorted by its final word, then by the rest. Jane Austen goes under A, Charles Dickens under D. Two things to watch:
Keep my order removes duplicates, blank lines and extra spaces but leaves the items in the order you pasted them, with the first copy of each repeat kept. Reverse my order flips the list as you pasted it, so the last line comes first; it does not sort, so pick Z to A for reverse alphabetical order. Shuffle puts the cleaned list in a random order, using your browser's secure random generator, which is handy for a speaking order or quiz questions. Press Shuffle again for a new order.
Terminal has a sort command. Type sort -f list.txt to sort a text file while ignoring capitals, or add -u to drop duplicates. In Numbers, select a column and use the Sort options in the Organize sidebar to sort a table. This page is quicker for a pasted list, a comma-separated list or a list of names by surname.
Compare two sorted lists to see what was added or dropped with the diff checker. To pick a winner from your list, use the random name picker.
Questions
Paste it, one item per line. It is sorted A to Z as you type.
Yes. Pick The last word under Sort by.
Numbers in number order is on. Untick it for strict character order.
Yes. Pick Commas under Items are separated by.
No. The list is sorted in this tab and is not stored. Only your settings are remembered in this browser.
Pick Keep my order under Order and keep Remove duplicates on. The list stays in the order you pasted it, with the first copy of each repeated item kept. The status line says how many duplicates were removed.
Yes. Pick the language under Alphabet rules. The order follows that language, for example Ä with A in German and after Z in Swedish.
Many simple sorts compare character codes, and every capital letter has a lower code than every small letter. This tool sorts the way a dictionary does, so capitals and small letters are mixed together.
Yes. Pick The number in each line under Sort by. Negative numbers, decimals and numbers with commas between thousands sort from smallest to largest, as on a calculator. Numbers in number order alone handles whole numbers inside text, such as item 2 and item 10.