Skip to content
tools.best

Browse all tools

Alphabetical Order Generator

The alphabetical order generator sorts a list with one item per line A to Z as you type. Switch to Z to A or sort by length with one click.

Runs in your browser. Your list is not sent to a server. Sources: Unicode collation Updated

40 characters
40 characters

6 lines

How the alphabetical order generator sorts a list

  1. The text is split into lines. Spaces at the start and end of each line are removed and empty lines are dropped.
  2. If Remove duplicates is ticked, repeated lines are removed and the first copy is kept.
  3. The lines are compared with the English collation rules of your browser, ignoring case unless Case sensitive is ticked. Numbers inside a line are compared by value.
  4. The result is written in the order you chose: A to Z, Z to A, shortest first, longest first, reversed, or unchanged.

Alphabetical order example: one list, four orders

The list banana, Apple, cherry, apple, item 10, item 2, one per line, sorted four ways:

SettingResult
A to ZApple, apple, banana, cherry, item 2, item 10
Z to Aitem 10, item 2, cherry, banana, apple, Apple
A to Z, duplicates removedApple, banana, cherry, item 2, item 10
Longest firstitem 10, banana, cherry, item 2, Apple, apple

"item 2" comes before "item 10" because the numbers are compared as 2 and 10. With duplicates removed, "apple" disappears: without case sensitivity it is the same entry as "Apple", which came first in the list.

A list of five lines, banana, Apple, cherry, item 10 and item 2, sorted A to Z by the alphabetical order generator into Apple, banana, cherry, item 2, item 10.
The numbers inside a line are compared as numbers, so item 2 comes before item 10.

Sort orders: A to Z, Z to A, by length

  • A to Z and Z to A: alphabetical and reverse alphabetical.
  • Shortest first and Longest first: by number of characters; lines of equal length stay in alphabetical order.
  • Reverse the list: last line first, without sorting.
  • Keep the order: no sorting. Use it with Remove duplicates to clean a list without rearranging it.

Alphabetizing names, titles and mixed capitals

Each line is sorted as a whole. A list of names sorts by the first word on each line, so write Smith, Anna if you want it ordered by surname.

A title that starts with "The" sorts under T. If you want such titles filed under their second word, move the article to the end first: Beatles, The. The tool does not drop or move words for you.

Capitals do not change the order unless Case sensitive is ticked. When duplicates are removed, the spelling that comes first in your list is the one kept.

To make the capitals consistent first, run the list through Convert Case. The status line under the result counts the lines and the duplicates removed; the letter counter gives words and characters as well. To pair every item with every other one, paste the sorted list into the word combination generator.

Alphabetical Order Generator: FAQ

How do I put a list in ABC order?
Paste the list into the left pane with one item on each line. The right pane shows it in alphabetical order straight away. Press Copy to take the sorted list with you.
Does capitalization change the order?
Not by default: apple, Banana, cherry sort by letter. Tick Case sensitive to treat Apple and apple as different entries; they then sort next to each other with the capitalized one first.
How are numbers sorted?
By value, not digit by digit: item 2 comes before item 10. A plain alphabetical sort would put item 10 first.
How does it handle accents and other alphabets?
Accented letters sort with their base letter, so école sits between eagle and egg. The order follows the English collation rules built into your browser.
What counts as a duplicate?
Two lines with the same text after spaces at the start and end are removed. With Case sensitive off, Apple and apple are duplicates and the first one is kept.

Sources