Sort Words

Free sort-words tool: reorder the words in any text alphabetically or by word length, ascending or descending, with optional case sensitivity. Runs in your browser.

Enter text above.

How sort words works

This tool splits your text into individual words (on any whitespace) and reorders them. You can sort alphabetically or by word length, ascending or descending, and choose whether the sort is case-sensitive.

By default the alphabetical sort is case-insensitive, so "Banana" and "apple" compare as "banana" and "apple". Turning on case-sensitive mode uses a locale-aware comparison where casing matters. When sorting by length, words of equal length fall back to an alphabetical tiebreak so the order is always deterministic.

Everything runs locally in your browser. The sorted words are rejoined with single spaces, and the result panel shows the count of words sorted.

Frequently asked questions

How is this different from the Line Sorter?
Line Sorter reorders whole lines of a block of text. Sort Words works on the words within a single string, splitting on whitespace and reordering the words themselves.
Can I sort by word length?
Yes. Choose "Word length" to order words from shortest to longest (or longest to shortest with descending order). Ties are broken alphabetically for a stable result.
Is the alphabetical sort case-sensitive?
By default no, so uppercase and lowercase compare equally. Tick "Case-sensitive" to make casing matter in the comparison.
Is my text stored or sent anywhere?
No. All processing happens in your browser. Your text is never uploaded or stored.