OnlineNotes Logo

    Alphabetize a List

    Paste a list and get it in alphabetical order. It works with one item per line or with commas, and it sorts numbers in a natural order.

    Options

    About this tool

    Alphabetical order makes a long list quick to scan, and it is the standard for references, glossaries, guest lists and name lists. Word and Google Docs can sort too, but only in a menu and only for whole paragraphs. Here you paste and copy.

    Sorting ignores upper and lower case, so "Cherry" comes after "banana", where a plain computer sort would put every capital first. Numbers sort by value, so "Item 2" comes before "Item 10". For book and film titles, turn on the option that ignores a, an and the, the way a library does.

    How it works

    1. Paste the list, with one item per line or separated by commas.
    2. Tell the tool which separator you used. Spaces around each item are trimmed and empty items are dropped.
    3. Pick A to Z or Z to A.
    4. Copy the sorted list. It uses the same separator you pasted.

    Worked example

    Input

    The Wire
    Alien
    A Few Good Men
    Fargo

    Output

    Alien
    Fargo
    A Few Good Men
    The Wire

    With "Ignore a, an and the" on, "A Few Good Men" sorts under F and "The Wire" under W, while the words themselves stay in the output.

    Edge cases and limits

    • Sorting uses your browser language rules. Accented letters sort next to their base letter in most languages.
    • Each line is one item, so it sorts by the first word. It cannot sort by last name in "First Last" lists.
    • A comma inside an item splits it when you pick comma separated. Put those items on separate lines.

    Frequently asked questions

    How do I alphabetize a list in Word?

    In Word, select the list, then Home, Sort. Or paste it here and copy the sorted result back, which also works for comma-separated lists.

    How does it sort numbers?

    By value, so 2 comes before 10. Items that start with a number come before items that start with a letter.

    Can it remove duplicates while sorting?

    Yes. Turn on "Remove duplicates". Copies are matched without regard to upper and lower case.

    Related tools