Alphabetize List
Sort any list into alphabetical order online — A to Z or Z to A, by last name, or by length — with natural number order, accent-aware sorting, and options to ignore "The", remove duplicates, and sort comma-separated lists.
Processed locally in your browser — nothing is uploaded.
Alphabetize List
0 characters
Sorted list
Output appears here…About Alphabetize List
Paste a list and it comes back in alphabetical order. Each line is one item by default; switch Items are to comma- or space-separated to sort a list like pear, apple, fig, and the result is joined back the same way.
The sort uses your chosen language's alphabet rather than raw character codes, which avoids the usual problems with simpler sorters:
- Case — "apple" and "Apple" sort together instead of every capitalised word coming first. Turn off Ignore case to put the uppercase form first when two items differ only in case.
- Accents — "Éclair" files under E, next to "eagle", not after Z. Some languages treat accented letters as separate letters, and the Alphabet option follows them: in Swedish, å, ä, and ö come after z.
- Numbers — with Natural number order, "Track 2" comes before "Track 10", the way people expect. Turn it off to compare digit by digit, so "10" comes before "2".
Sort orders
- A to Z / Z to A — the whole item.
- Last word — by each item's last word, which puts a list of "First Last" names in surname order. Items with the same last word are ordered by the full item.
- Shortest first / Longest first — by length in characters, alphabetically within the same length.
- Reverse current order — no sorting; the list is flipped bottom to top.
Turn on Ignore The, A, An to file titles the way libraries and record shops do: "The Beatles" under B. Duplicates can be removed as part of the sort (matching the case setting), and blank lines are dropped unless you switch that off. The sort is stable, so items that compare as equal stay in their original order.
Example
Input
The Rolling Stones blur ABBA The Beatles Édith Piaf radiohead
Output
ABBA The Beatles blur Édith Piaf radiohead The Rolling Stones
With Ignore The, A, An on. Lowercase "blur" sorts among the B's, "Édith" files under E, and "The Rolling Stones" sorts under R.
Common uses
- Put a list of names, products, or tags in alphabetical order
- Sort a bibliography, glossary, or index entries
- Order a guest list or class roster by last name
- Alphabetize keywords or a comma-separated list for a spreadsheet or CMS field
- Tidy and de-duplicate a list in one step
Limitations
- "Last word" takes the final word on the line, so suffixes such as "Jr." or names written "Last, First" won't sort by surname as intended.
- Ignoring articles only recognises English "the", "a", and "an".
- Comma-separated mode splits on every comma, so items that themselves contain commas (like "Paris, France") need to go one per line instead.
- Everything is processed in your browser; very large lists (hundreds of thousands of lines) may take a moment.
Frequently asked questions
How do I put a list in alphabetical order?
Paste the list with one item per line (or choose comma- or space-separated), and the sorted list appears below in A-to-Z order. Choose Z to A from Sort order for reverse alphabetical order, then copy or download the result.
How do I sort names by last name?
Choose "Last word, A to Z" as the sort order. Each line is compared by its final word, so "Ada Lovelace", "Alan Turing" and "Charles Babbage" come out as Babbage, Lovelace, Turing. People with the same surname are then ordered by their full name.
Why does item 10 come before item 2 in some sorters?
Many sorters compare text one character at a time, and the character 1 comes before 2, so "item 10" lands before "item 2". Natural number order reads each run of digits as a number instead, giving item 1, item 2, item 10. It is on by default here.
How are capital letters and accents sorted?
By default upper and lower case are treated as the same letter, and accented letters sort next to their base letter, so "apple", "Apple" and "Éclair" stay among the A's and E's. Languages with their own alphabetical rules, such as Swedish or German, can be chosen in Options.
Can I alphabetize and remove duplicates at the same time?
Yes. Turn on Remove duplicates and only the first copy of each item is kept before sorting. With Ignore case on, "Milk" and "milk" count as duplicates; turn it off to keep both.
How do I sort titles while ignoring "The"?
Turn on Ignore The, A, An. A leading article is skipped when comparing, so "The Beatles" sorts under B and "A Tribe Called Quest" under T, while the titles themselves are left unchanged in the output.