Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Alphabetize a list, A to Z in a click.

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

Smart order, clean list.

01 / Natural

Numbers in order

"Chapter 2" before "Chapter 10", not after it, like a person would sort.

02 / Names

By surname

Sort by the last word to put "Jane Austen" under A.

03 / Clean

Tidy as it sorts

Duplicates, blank lines and stray spaces go, and you see how many were removed.

Guide

How to alphabetize a list, and get the order you expect.

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.

How to alphabetize a list

  1. Paste your list into Your list, or press Open file there (or drop a .txt or .csv file on it). The Sorted box fills in as you type.
  2. If your items are not on separate lines, change Items are separated by to Commas, Semicolons, Tabs or Spaces. The result uses the same separator.
  3. Pick the Order: A to Z, Z to A, Keep my order (only cleans the list), Reverse my order or Shuffle.
  4. Choose Sort by: The whole line, The last word for surnames, Length, or The number in each line.
  5. If the list is in a language other than English, pick it under Alphabet rules.
  6. Turn the options on or off: Numbers in number order, Ignore "the", "a" and "an" at the start, Capitals matter, Remove duplicates, Remove blank lines, Trim spaces and Number the result.
  7. Read the status line for the number of items, and how many duplicates and blank lines were removed.
  8. Press Copy or Download .txt. To work on the result again with other settings, press Use the result as input.

Your settings are remembered in this browser, so the next list is sorted the same way. The list itself is not stored.

What the sample list shows

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:

  • The second apple was removed as a duplicate, because capitals are ignored when checking for repeats. The first one typed, Apple, is the one kept.
  • Apple and banana sit together even though one starts with a capital. Plain computer sorting puts every capital letter before every small letter, which would put Date ahead of banana.
  • item 2 comes before item 10, because numbers are read as whole numbers rather than digit by digit.

What each option does

OptionOnOff
Numbers in number order2, 9, 10, 10010, 100, 2, 9 (digit by digit)
Ignore "the", "a" and "an"The Matrix sorts under MThe Matrix sorts under T
Capitals matterApple and apple are both kept, Apple firstApple and apple count as the same item
Remove duplicatesEach item appears onceRepeats stay in
Remove blank linesEmpty lines are droppedEmpty lines sort to the top
Trim spacesSpaces at the start and end are cutA leading space can push an item to the top
Number the result1. Apple, 2. banana, 3. cherryItems 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.

Alphabet rules for other languages

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.

Sort by length or by number

  • Length, shortest first counts the characters in each item. Items of the same length are sorted A to Z. Pick Z to A for the longest first.
  • The number in each line reads the first number in each item, with minus signs, decimals and commas between thousands, so -10, -3.5, 2, 10 and 1,200 come out in that order. Items with no number go to the end. Use it for prices, scores or a list of measurements.

Sorting names by surname

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:

  • Suffixes and titles at the end count as the last word. "Martin Luther King Jr." sorts under J. Remove the suffix first, or write the name as "King, Martin Luther" and sort by the whole line.
  • Surnames with two words, such as "van Gogh" or "de la Cruz", sort under their very last word. Put those right by hand if your style puts them under V or D.

Clean without sorting, shuffle and reverse

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.

On a Mac

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

Good to know.

How do I put a list in alphabetical order?

Paste it, one item per line. It is sorted A to Z as you type.

Can I sort names by last name?

Yes. Pick The last word under Sort by.

Why does item 10 come after item 2?

Numbers in number order is on. Untick it for strict character order.

Can I sort a comma-separated list?

Yes. Pick Commas under Items are separated by.

Is anything sent anywhere?

No. The list is sorted in this tab and is not stored. Only your settings are remembered in this browser.

How do I remove duplicates from a list without sorting it?

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.

Can it sort in German, Swedish or another language?

Yes. Pick the language under Alphabet rules. The order follows that language, for example Ä with A in German and after Z in Swedish.

Why do capital letters sort before small letters in other tools?

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.

Can I sort a list of numbers?

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.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch