Sort Words Alphabetically

Sort words or lines alphabetically, ascending or descending

Unsorted text

Sorted output

Nothing you type here is ever sent anywhere — the sorting runs entirely in your browser.

About this tool

Alphabetizing a list by hand is tedious and error-prone, whether you're organizing a glossary, a set of tags, a guest list, or a spreadsheet column you pasted in as plain text. This tool splits your input into either individual words (separated by whitespace) or whole lines, sorts them using locale-aware string comparison so accented characters and case are handled sensibly, and lets you choose ascending (A to Z) or descending (Z to A) order. The result is ready to paste straight back into wherever you need an ordered list.

What's the difference between sorting by words and by lines?

Sorting by words breaks your entire input on whitespace and alphabetizes each individual word, regardless of line breaks. Sorting by lines keeps each line's full content together and alphabetizes the lines themselves — useful for lists where each line is a name, phrase, or entry.

Is the sort case-sensitive?

The comparison uses locale-aware string ordering, which generally treats letters in a natural alphabetical way regardless of case, rather than a strict character-code sort that would push all capital letters before lowercase ones.

Can I reverse the order after sorting?

Yes — just switch the Order dropdown from Ascending to Descending and the same list is instantly re-sorted from Z to A instead.

Putting a list in order

Choose whether you're sorting words or lines, and whether the order is A to Z or Z to A. The sorted result appears right away. Case doesn't matter, so "Banana" lands between "apple" and "cherry" rather than being pushed to the front.

Use Words for a run of text, and Lines when each line is its own item, such as names, titles or keywords. It's good for glossaries, bibliographies, reading lists, tag lists and any set of terms you want to scan quickly.

Sorting is alphabetical, not numeric, so "10" comes before "2". If you need numbers in true numeric order, pad them with leading zeros first.

A quick example

Before
pear apple Banana cherry  (words, A-Z)
After
apple Banana cherry pear

Good to know

Run the Duplicate Line Remover on the sorted list if you also want repeats gone. Sorting first puts the duplicates side by side, which makes them easy to spot.