Unique Word Counter

Count total, unique and repeated words in any text, with a chart of the 20 most frequent words plus case and punctuation options.

All calculations happen locally in your browser. Nothing leaves your device.

Total
0
Unique
0
Repeated
0

Top 20 words

Paste some text to see results.

How It Works

Paste any text and the counter recomputes on every keystroke. The tool splits your text into words, applies your two options (case sensitivity and punctuation handling), then derives three numbers: the total number of word occurrences, the number of distinct words, and the repeated count (total minus unique). A frequency table tracks how often each word appears, and the top twenty are drawn as horizontal bars — the longest bar is your most frequent word.

Case sensitivity
By default the counter ignores case, so "The", "the" and "THE" all count as the same word. Uncheck "Ignore case" if you want case-variant forms treated as distinct — useful when analyzing code or titles.
Punctuation handling
Off by default, punctuation is kept: "word," and "word" are two different words. Turn on "Ignore punctuation" to strip leading and trailing punctuation from each word before counting, which gives a cleaner vocabulary picture for prose.
The Top 20 chart
Words are ranked by how many times they occur. Each bar is scaled against the most frequent word, so the chart shows the shape of your vocabulary — how dominant the most common words are and how quickly the tail falls off. You can copy the full unique-word list to the clipboard with one click.

Frequently Asked Questions

How are words detected?

Words are separated by whitespace (spaces, tabs, newlines). With 'Ignore punctuation' enabled, leading and trailing punctuation is stripped from each word before counting, so "word," and "word" are treated as the same word. With 'Ignore case' enabled, "The" and "the" count as one word.

What does 'repeated words' mean?

It is the number of words that appear more than once, computed as total words minus unique words. If your text has 100 words and 70 of them are different, the repeated count is 30.

What does the Top 20 chart show?

The twenty most frequent words in the text, ranked by occurrence count. Each bar's length is proportional to the count relative to the most frequent word, so you can see the spread of your vocabulary at a glance.

Is my text uploaded anywhere?

No. Everything runs in your browser with vanilla JavaScript. Your text never leaves your device — you can even cut your internet connection and the tool keeps working.

How much text can I analyze?

As much as your browser's textarea can hold comfortably — typically hundreds of kilobytes of text with no noticeable lag. Very large documents (several megabytes) may make typing feel slower, but counting itself is instant.