Skip to content
TextArray
100% local

Sort words

Sort the words of your text alphabetically or by length, with optional deduplication.

Input
Output

Sort words

Paste any text and this tool splits it into words and puts them in the order you choose. You can sort A → Z or Z → A, or arrange the words by length with the shortest or the longest first. It is the quick way to alphabetize a list of tags, tidy a bag of keywords, order names, or turn a jumbled paragraph into a clean, sorted word list.

Four switches shape the result. Case-insensitive, on by default, treats "Apple" and "apple" as the same word for sorting, so capitalisation does not scatter related words. Ignore punctuation compares words without their leading or trailing marks — so "apple," sorts next to "apple" — while still keeping the punctuation in the output. Remove duplicates drops repeated words and keeps the first one it meets; when case-insensitive is on, "Apple" and "apple" count as the same word. Finally you choose how the sorted words are joined: by a space, one per line, or comma-separated.

Sorting uses your browser's locale-aware comparison, so accented letters land where they belong — á after a, č after c, ł near l, ő and ű in their Hungarian places — instead of being pushed to the end as they would be in a naïve byte sort. Words containing emoji or other symbols are sorted without error, and line breaks, tabs and multiple spaces all count as word boundaries.

Everything runs locally in your browser. The tally under the output shows the total word count, how many are unique and the character count, and the result updates as you type. Your text is never uploaded anywhere.

FAQ

How are words separated?
By whitespace — spaces, tabs and line breaks all split words. Punctuation stays attached to a word unless you turn on "Ignore punctuation", which only affects how words are compared, not the output.
How does sorting handle accented letters?
It uses your browser's locale-aware comparison, so á sorts near a, č near c and ł near l, rather than being dumped at the end. That keeps lists in Slovak, Czech, Polish, German and Hungarian in a natural order.
What does "Remove duplicates" keep?
The first occurrence of each word. With "Case-insensitive" on, "Apple" and "apple" count as the same word; turn it off to treat them as distinct.
Can I get one word per line?
Yes. Set the separator to "New line" and each sorted word appears on its own line; "Comma" joins them with commas, and "Space" keeps them on one line.
Is my text uploaded anywhere?
No. The tool runs entirely in your browser and your text never leaves your device.