Alphabetizer
Put any list in alphabetical order, A to Z or Z to A, or sort it by length.
Runs in your browser. Nothing you enter is uploaded.
How to use Alphabetizer
- Paste your list with one item per line. Columns copied from Excel or Google Sheets work.
- Pick an order: A to Z, Z to A, shortest first or longest first.
- For a list on one line, like "pear, apple, fig", set Items are separated by to Commas.
- Turn on Sort by last name for names, or Ignore The, A and An for titles.
- Copy the sorted list, or download it as a .txt file.
Examples
A list with mixed capitals
- Sort: A to Z
bananas Apples cherries Dates elderberries
Apples bananas cherries Dates elderberries
Capitals don’t change the order: Dates still comes after cherries.
Numbers in natural order
- Sort: A to Z
Room 10 Room 2 Room 1 Room 21
Room 1 Room 2 Room 10 Room 21
Room 2 comes before Room 10, the way people count, not digit by digit.
Names by last name
- Sort: A to Z
- Sort by last name: On
Maria Lopez James Smith Anna Brown David Lee
Anna Brown David Lee Maria Lopez James Smith
Each name is sorted by its last word and keeps its first name.
Book titles, library style
- Sort: A to Z
- Ignore The, A and An: On
The Hobbit A Tale of Two Cities Dune An American Tragedy
An American Tragedy Dune The Hobbit A Tale of Two Cities
The Hobbit sorts under H and A Tale of Two Cities under T.
A comma-separated list
- Sort: A to Z
- Items are separated by: Commas
pear, apple, fig, banana
apple, banana, fig, pear
The result is a comma-separated list too.
How it works
Each line of your list is one item, and the list is sorted as you type. Everything runs in your browser, so names and email addresses stay private.
| Sort | What you get |
|---|---|
| A to Z | Alphabetical order |
| Z to A | Reverse alphabetical order |
| Shortest first | Shortest items first, and items of the same length A to Z |
| Longest first | Longest items first, and items of the same length A to Z |
How the order is decided
- Capitals don’t count. “apple”, “Banana” and “cherry” sort as a, b, c. When two items differ only in capitals, they keep the order they were in.
- Numbers are in natural order. “Room 2” comes before “Room 10”, and 9 before 100. A plain character-by-character sort would put “Room 10” first because 1 comes before 2.
- A list of numbers sorts by value. A to Z puts the smallest first: -2, 0.5, 3.25, 3.5, 10, 1,000. Numbers come before words in a mixed list.
- Accented letters sort with their base letter. “éclair” sits with the e’s, not after z.
- Empty lines are dropped, so a blank line in your list doesn’t end up at the top.
Lists on one line
Set Items are separated by to Commas for a list like “pear, apple, fig”. The result is a comma-separated list too. Choose Spaces (sort words) to put the words of a sentence or a tag list in order.
Names and titles
- Sort by last name sorts each line by its last word, so “Anna Brown” comes before “David Lee”. The names stay written first name first.
- Ignore The, A and An sorts “The Hobbit” under H and “A Tale of Two Cities” under T, the way libraries and record stores do. Without it, every word counts, so “The Hobbit” sorts under T.
Duplicates
Remove duplicates keeps one copy of items that are exactly the same, ignoring extra spaces. To treat “Apple” and “apple” as the same item, or to see which items repeat, use Remove Duplicate Lines. To see what two lists have in common, use Compare Two Lists.
Questions
How do I put a list in alphabetical order?
Paste the list above, one item per line, and choose A to Z. The sorted list appears as you type. Choose Z to A for reverse alphabetical order.
How do I alphabetize in Microsoft Word?
Select the list, then go to Home → Sort (the A-Z button in the Paragraph group). Choose Paragraphs, Text and Ascending, and click OK. To sort by last name, choose Options, set Separate fields at to Other with a space, and sort by Word 2.
How do I alphabetize in Google Docs?
Google Docs has no built-in sort. Paste the list here and copy the result back, or install a sorting add-on from Extensions → Add-ons. In Google Sheets, select the column and use Data → Sort range.
How do I sort a column alphabetically in Excel?
Click a cell in the column, then go to Data and click Sort A to Z (or Z to A). If Excel asks, choose Expand the selection so each row stays together.
How do I alphabetize names by last name?
Turn on Sort by last name. Each name is sorted by its last word, so "Anna Brown" comes before "David Lee", and the names stay written first name first.
How do I sort numbers from smallest to largest?
Paste the numbers, one per line, and choose A to Z for smallest first or Z to A for largest first. Numbers are sorted by their value, so 9 comes before 10, 3.25 before 3.5 and -2 before 2. Thousands separators like 1,000 are fine.
Related tools
- List Randomizer Shuffle a list or pick random items from it, fairly.
- Remove Duplicate Lines Delete repeated lines from a list, or find the duplicates.
- Compare Two Lists Find what’s in one list but not the other, or in both.
- Case Converter Switch text between Sentence case, lower, UPPER and Capitalized Case.
- Binary Translator Translate binary to text and text to binary, emoji included.
- Blank Space Copy and Paste Copy invisible characters for blank names, messages and bios.
Updated October 26, 2026 · Works in current Chrome, Edge, Firefox and Safari · Runs entirely in your browser