Word Sorter

Sort words alphabetically from A to Z or Z to A, by length or by how often they appear, or shuffle them at random. Switch to lines to alphabetize a whole list, remove duplicates as you sort, and put numbers in their real order, so item2 comes before item10.

  • Words or lines
  • A–Z, length, frequency
  • Stays on your device
Sort
0 words · 0 characters
Sorted 0 words · 0 characters
Stays on this device
Items
0
Different items
0
In the result
0
Duplicates removed
0

How to sort words alphabetically

Alphabetizing words or a list with this word sorter takes three steps.

  1. Paste your words or list

    Words separated by spaces, or a list with one item per line. Choose Words or Lines (a list) under What to sort.

  2. Choose the order

    Press A to Z, Z to A, Shortest first, Longest first, Most frequent, Least frequent, Original order or Random. Tick Remove duplicates to keep each item once.

  3. Copy the sorted list

    Show the result one per line or separated by spaces or commas, then copy it or download it as a .txt file.

Example

banana Apple cherry apple date banana fig item10 item2 sorted A to Z gives Apple apple banana banana cherry date fig item2 item10. With Remove duplicates it’s 7 words instead of 9.

Sort the sample words

Word sorter features

An alphabetizer with more ways to sort than A to Z, for words and for whole lines.

  • A–Z

    Alphabetical order

    A to Z or Z to A, by the alphabet of your language, with capital and small letters sorted together.

  • 8

    Eight orders

    Alphabetical, by length, by frequency, original order or random, with a Shuffle again button.

  • 1

    Duplicates removed

    Keep each word or line once. “Apple” and “apple” count as the same word unless you untick Ignore capitalization.

  • 2<10

    Numbers in order

    Numbers inside words are sorted by value, so item2 comes before item10, like a file manager.

Ways to sort words

The sample words *banana Apple cherry apple date banana fig item10 item2* in each order:

OrderResult
A to ZApple apple banana banana cherry date fig item2 item10
Z to Aitem10 item2 fig date cherry banana banana apple Apple
Shortest firstfig date Apple apple item2 banana banana cherry item10
Longest firstbanana banana cherry item10 Apple apple item2 date fig
Most frequentbanana banana Apple apple cherry date fig item10 item2
A to Z, duplicates removedApple banana cherry date fig item2 item10

Words of the same length, or used the same number of times, are listed alphabetically or in the order they first appear.

How to alphabetize a list

To put a list in alphabetical order, paste it with one item per line and choose Lines (a list) under What to sort to sort lines alphabetically. Each whole line is sorted as one item, so names like Mary Ann Smith or addresses stay together. Empty lines are left out and spaces at the ends of lines are trimmed.

Tick Remove duplicates to keep each line once, or use the Remove Duplicate Lines tool if you want to keep your list’s original order and see which lines were removed.

Alphabetical order rules

Alphabetical order looks simple until a list mixes capitals, accents and numbers. The sorter follows the same rules as your phone’s contacts list:

  • Capitals don’t jump ahead. apple and Apple sort together, not after every capital from A to Z. When two words differ only in case, the capital comes first.
  • Accents sort with their letter. é sorts with e, in the order your language uses.
  • Numbers sort by value. item2 comes before item10. Untick Sort numbers by value to sort digit by digit, which puts item10 before item2.
  • Punctuation around words is removed by default, so “Hello,” sorts as Hello.

Natural sort: putting numbers in order

A plain text sort compares numbers one digit at a time. A natural sort reads the whole number:

Sort numbers by valueResult for item10 item2 item1
On (natural sort)item1 item2 item10
Off (digit by digit)item1 item10 item2

Sort words by length or frequency

Shortest first and Longest first count the characters in each word, which helps when you write word games, crosswords or tag lists with a length limit. Most frequent puts the words you use most at the top and keeps every copy of a word together; for counts and percentages, the Word Frequency Counter is the better tool.

Random shuffles the words or lines, for example to draw names or mix quiz answers. Press Shuffle again for a new order.

Word sorter FAQ

How do I sort words alphabetically?

Paste the words and press A to Z. The sorted words appear next to yours; copy them or download them as a .txt file.

Can I sort a list line by line?

Yes. Choose Lines (a list) under What to sort, and each line is sorted as one item.

Does capitalization affect the order?

No. Capital and small letters are sorted together, so Apple and apple sit side by side. When two words differ only in case, the capital comes first.

Can I remove duplicate words while sorting?

Yes. Tick Remove duplicates. With Ignore capitalization on, Apple and apple count as one word and the first one is kept.

Why does item10 come after item2?

Numbers inside words are sorted by their value. Untick Sort numbers by value to sort digit by digit instead.

Can I sort words by length?

Yes. Press Shortest first or Longest first. Words of the same length are sorted alphabetically.

Can I get the words separated by commas?

Yes. Under Show the result, choose Separated by commas, or one per line, or separated by spaces.

Is my text uploaded?

No. Sorting happens in your browser and nothing you paste is sent or stored.

Sources and references

  1. Intl.Collator() constructor, MDN Web Docs