Alphabetical Order Tool

Alphabetical Order Tool

Paste a list and get it back in alphabetical order at once — A to Z or Z to A, one item per line, separated by commas, or word by word. Sort names by surname, skip “The” in titles, put item 2 before item 10 and drop duplicates. The sorting happens in your browser; nothing you paste is uploaded.

One item per line, or separated by commas. Up to tens of thousands of lines.
Order
Items are
  • Sorted list

    Apple apple Apricot banana blueberry cherry kiwi Mango

Items8
Duplicates1

Sorted with the rules of the English alphabet (Unicode collation), in your browser — nothing you paste is uploaded.

Calculated on your device · formulas checked against known results · How we test

How to put a list in alphabetical order

  1. Paste your list into the box — names, words, book titles, countries, product codes, anything. Put one item on each line, or separate the items with commas.
  2. Choose the order: A to Z, Z to A, or Reverse list, which simply turns the current order upside down without sorting.
  3. Tell the tool how the items are separated: one per line, comma-separated, or Words to sort every word of a sentence or paragraph.
  4. Pick the options you need (below) and press Copy beside the sorted list. The result updates as you type, and the counts show how many items, duplicates and empty lines there were.

What each option does

OptionExampleResult
Sort by last word (surnames)Mary Smith, John Adams, Anna BrownJohn Adams, Anna Brown, Mary Smith
Ignore “The”, “A”, “An”The Who, Abba, The BeatlesAbba, The Beatles, The Who
Natural number orderChapter 10, Chapter 2, Chapter 1Chapter 1, Chapter 2, Chapter 10
Ignore uppercase and lowercasebanana, Apple, cherryApple, banana, cherry
Remove duplicatesapple, Apple, pear, appleapple, pear
Remove empty lines, trim spacesblank lines and stray spaces from a pasted columna clean list with no gaps

With Ignore uppercase and lowercase turned off, items that differ only in capitals are kept apart and the capitalized one comes first (Apple before apple); duplicates then have to match exactly.

How alphabetical order works

Items are compared letter by letter from the left: the first letter decides, and only when it is the same does the second one count, and so on. A shorter item that matches the start of a longer one comes first, so art goes before artist. Spaces and punctuation are compared too, which is why New York comes before Newark.

Numbers are where many sorters go wrong. Compared character by character, “10” starts with a 1 and lands before “2” — that is how a computer lists the files photo1, photo10, photo2. Natural number order reads each run of digits as a whole number instead, so photo2 comes before photo10, the way a person would arrange them. Turn the option off when the digits are codes rather than quantities.

Accents and letters beyond A–Z follow the real rules of each language, not the order of character codes. A simple program that sorts by code would put Émile after Zoe because É has a higher number than Z; this tool uses the Unicode Collation Algorithm built into your browser, so Émile sits with the other E names. The same page in other languages sorts by that language’s alphabet — Spanish places ñ after n, for example.

Worked example: a class list by surname

Paste the names as they arrived — Mary Smith, john adams, Anna Brown, Luis García, Mary Smith, one per line. Turn on Sort by last word and Remove duplicates. The result is john adams, Anna Brown, Luis García, Mary Smith: four names, one duplicate removed, ordered by Adams, Brown, García, Smith even though the first names start with other letters and one is lowercase. To change the capitals afterwards, run the list through the case converter.

Tips

Frequently asked questions

How do I sort a list alphabetically?

Paste the list with one item per line (or separated by commas), choose A to Z and copy the result. It updates as you type, and you can sort Z to A or reverse the list with one tap.

Can I sort names by last name?

Yes. Turn on “Sort by last word (surnames)”: each line is ordered by its last word, so Mary Smith comes after Anna Brown, while the full names stay as you typed them.

Why does item 10 come before item 2 in some sorters?

Because they compare characters, and “1” comes before “2”. With natural number order (on by default) whole numbers are compared, so item 2 comes before item 10.

Does it handle accents and other alphabets?

Yes. Sorting follows the Unicode Collation Algorithm in your browser: é is sorted with e, and the localized versions of this page follow their own alphabet, such as ñ after n in Spanish.

Is my list uploaded or saved?

No. The list is sorted by your own browser and is not sent anywhere or kept after you close the page.

Embed this calculator on your website

Free for any website or blog. Paste this code where you want the calculator to appear:

All free calculator widgets

Last updated: October 19, 2026

Menu

Categories

Finance Calculators31 calculatorsBusiness & Shopping Calculators9 calculatorsHealth & Fitness Calculators16 calculatorsMath & School Calculators25 calculatorsDate & Time Calculators21 calculatorsHoliday Countdowns17 calculatorsEveryday Tools57 calculatorsMic, Camera & Sound Tools13 calculatorsDeveloper Tools11 calculatorsImage & PDF Tools23 calculators

CalcWorthy

AboutContactPrivacy PolicyTerms of Use

Language

Language
EnglishEnglishالعربيةArabicবাংলাBanglaDeutschGermanEspañolSpanishفارسیPersianFrançaisFrenchעבריתHebrewहिन्दीHindiBahasa IndonesiaIndonesianItalianoItalian日本語Japanese한국어KoreanBahasa MelayuMalayNederlandsDutchPolskiPolishPortuguêsPortugueseРусскийRussianไทยThaiTürkçeTurkishУкраїнськаUkrainianاردوUrduTiếng ViệtVietnamese简体中文Simplified Chinese