Put the words of any text in alphabetical order

Paste a sentence, a list or a whole paragraph and the tool pulls out every word, drops the punctuation and sorts the words alphabetically, A to Z or Z to A.

Live demo · real result from this tool
Order
Output

Result

apple Apple banana mango zebra

Processed on your device — nothing is uploaded.

How to alphabetize words

  1. Paste your text into Your text.
  2. Choose the Order: A → Z or Z → A.
  3. Tick Remove duplicates to keep each word once.
  4. Pick an Output style: Spaces, One per line or Commas.
  5. Copy the sorted words.

What it does and when to use it

Sorting words by hand is slow and easy to get wrong once a list is longer than a dozen items. This tool is useful whenever you have words and need them in order:

  • Spelling and vocabulary lists. Teachers and learners can turn a reading passage into an ordered word list for study.
  • Tags and keywords. Put a messy set of tags in order, with duplicates removed, before pasting them into a CMS.
  • Glossaries and indexes. Get a first sorted draft of the terms in a document.
  • Word games. Check a set of letters or answers quickly.

For a list of distinct words with their counts, try unique words or word frequency. To remove repeated words but keep the original order, use remove duplicate words.

How it works

The tool first finds the words: runs of letters and digits, which may contain an apostrophe or hyphen inside. Everything else, such as commas, full stops and brackets, is dropped.

If Remove duplicates is ticked, a word is skipped when the same word, ignoring case, has already been seen.

The words are then sorted with your browser’s language-aware comparison. Case and accents are ignored, so “Émile” sits next to “eagle”, and numbers inside words are compared by value. Z → A simply reverses the A → Z result. Finally the words are joined with a space, a line break or a comma and space. Nothing is sent to a server.

Worked examples

These outputs come from the tool’s own function.

Mixed case. “zebra Apple mango banana apple” gives apple Apple banana mango zebra. Both spellings of apple are kept, lowercase first.

Duplicates removed, one per line. The same text with Remove duplicates and One per line gives Apple, banana, mango, zebra. The first spelling, “Apple”, was kept.

Accents and numbers. “item10 item2 item1 Émile eagle” with Commas gives eagle, Émile, item1, item2, item10.

Limits and tips

  • Alphabetical order follows general rules, not the special rules of one language, such as Swedish placing å after z.
  • Duplicate removal does not ignore accents, so “resume” and “résumé” both stay.

Frequently asked questions

Does it sort words or whole lines?
Words. Every word in the text is collected and sorted, wherever it was. To sort whole lines and keep each line intact, use the text sorter.
Is the sort case-sensitive?
No. "Apple" and "apple" sort together and keep their own capitals. When two words differ only in case, the lowercase one comes first.
Why does item2 come before item10?
The tool sorts numbers inside words by their value, not digit by digit, so item1, item2, item10 is the order you get. A plain character sort would put item10 before item2.
Which copy is kept when I remove duplicates?
The first one in your text. In "zebra Apple mango banana apple" the capitalised "Apple" comes first, so it is the one that stays. Matching ignores case.
What happens to punctuation and numbers?
Punctuation is dropped. Numbers on their own count as words and are sorted with the rest, in number order. Apostrophes and hyphens inside a word are kept, so "don't" and "well-known" stay whole.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close