Word Frequency Counter Calculator
Paste text to count how many times each word appears.
How the counting works
The counter scans your text once, grouping consecutive word characters into words and treating everything else — spaces, punctuation, symbols — as a boundary. Each word is normalized according to the case mode, tallied in a map, and remembered in first-appearance order. When the scan finishes you get three readouts: total words, unique words, and a ranked list of the top 10 words with their counts.
A word is defined generously: runs of letters, digits, apostrophes and non-ASCII characters all count, so "don’t" stays one word, "well-known" splits into two, and accented or CJK text is grouped character by character rather than dropped. That definition makes the tool usable on code identifiers and URLs as well as prose.
Worked example at the default text
The default sentence is "the quick brown fox jumps over the lazy dog the fox" — 11 words, 8 unique. The tally reads: the: 3, fox: 2, and 1 each for quick, brown, jumps, over, lazy and dog. The word "the" accounts for 3 of 11 occurrences, a 27% share that already resembles the profile of real English, where "the" typically tops frequency lists at 5–7% of running text.
The ranked list shows the structure at a glance: one head word at count 3, one at count 2, six at count 1. This steep drop-off — a few words dominating, a long tail of singles — is Zipf’s law in miniature, and it is why keyword extraction usually looks at the top 10 rather than the full histogram.
Case modes and when each matters
Case-insensitive mode merges "The" and "the" into one entry, which is what you want for prose analysis, keyword research and readability checks. Case-sensitive mode keeps them separate, which is what you want when capitalization carries meaning: counting a proper noun like "Apple" without merging in every "apple", tallying code identifiers where User and user are different symbols, or checking acronym density in a technical document.
| Input word | Case-insensitive tally | Case-sensitive tally |
|---|---|---|
| The (3×: The, the, the) | the: 3 | The: 1, the: 2 |
| Fox (2×) | fox: 2 | fox: 2 |
| Dog (1×) | dog: 1 | dog: 1 |
| Quick (1×) | quick: 1 | quick: 1 |
The table uses the default sentence with one capital added. Switching modes changes unique counts too — merging The into the produces 8 unique words in the example, while splitting them produces 9, because one map key has become two.
Reading the three outputs together
- Total words is your raw volume — the denominator for every share and percentage you compute
- Unique words is vocabulary size — 8 unique over 11 total is a type-token ratio of 0.73, high because the sentence is short
- The top-10 list with counts is the actual distribution — in long documents expect the #1 word near 5% of total and the tail mostly 1s
The type-token ratio falls as texts grow longer — a 10,000-word document typically has a ratio near 0.15–0.25 — so comparing unique counts only makes sense between texts of similar length. Shares (count divided by total) are the comparable statistic across documents of any size.
How the ranking sorts ties
Words with equal counts are ordered by first appearance in the text, which keeps the list stable between runs on identical input. In the default example the six single-count words appear in sentence order — quick, brown, jumps, over, lazy, dog — so the ranked list doubles as a reading-order view when counts are all 1, which is common in short texts where most words occur once.
Practical uses
Keyword research starts here: paste competitor copy and see which terms repeat. Editors use the tool to catch overused words — if "just" or "very" appears 15 times in a 2,000-word draft, every one of them is a candidate for deletion. Teachers and learners check vocabulary spread; SEO writers confirm a target term appears naturally rather than stuffed, since a keyword above roughly 3% of total words reads as manipulation to both reviewers and ranking systems.
Stopwords and the long tail
Expect function words — the, of, and, to, a — to dominate any English text. That is expected, not a problem: either ignore the top of the list when judging content words, or paste text with the obvious fillers removed first. In the default example, dropping "the" and re-reading the counts leaves fox: 2 at the top with six words tied at 1, which is a far more informative picture of what the sentence is actually about.
Definition quirks worth knowing
- Hyphenated compounds split: "well-known" is two words, well and known
- Apostrophes are word characters, so "don’t" and "it’s" stay whole
- Digits count as word characters, so "2026" and "v2" are words
- Punctuation disappears entirely — "fox." and "fox" merge in the same tally
- The top list caps at 10 entries even when the text holds hundreds of unique words
For raw counts without ranking, or letter and sentence tallies alongside, the Character Counter and String Length Calculator cover the sibling measurements; the Regex Tester is the next step when you need to find and rewrite specific patterns instead of counting them.
Frequently asked questions
How many times does "the" appear in the default text?
3 times, out of 11 total words. The full tally is the: 3, fox: 2, and 1 each for quick, brown, jumps, over, lazy and dog, giving 8 unique words.
How are words separated?
Any character that is not a letter, digit, apostrophe or non-ASCII character acts as a boundary. Spaces and punctuation split words, while "don’t" and "2026" stay whole.
Are The and the counted together?
In case-insensitive mode, yes — they merge into one entry. Switch to case-sensitive mode when capitalization matters, such as distinguishing a proper noun from an ordinary word.
What is the difference between total and unique words?
Total counts every occurrence; unique counts distinct words. The default text has 11 total and 8 unique, because the repeats of the and fox collapse into single entries.
How many words are shown in the ranked list?
The top 10 by count, highest first. The total and unique figures still describe the whole text, so you can compute any word’s share as its count divided by the total.
Do hyphenated words count as one or two?
Two. The hyphen is punctuation and acts as a boundary, so "well-known" is tallied as well and known separately.
Why does a common word like "the" dominate my results?
Function words top every English text, typically near 5–7% of all words. Either skim past them or remove obvious fillers from the input before judging which content words matter.
Does capitalization change the unique count?
It can. Case-insensitive mode on the default text gives 8 unique words; with a capital The counted separately it would give 9, because one map key becomes two.
Can I count words in code or URLs?
Yes. Digits and apostrophes are word characters, so identifiers like v2 or user_id tokenize predictably — user_id splits at the underscore into user and id, which is usually what you want when auditing naming patterns.
Method and sources
- Standard tokenization of text into words for frequency analysis.