Counting a Keyword in Pasted Text
Type cat cat dog in the text box and cat in the keyword box. The headline reads 2 of 3. The result sentence reads: The keyword appears 2 times in 3 words, which is 66.6666666667 percent. The labeled lines are Matches 2, Words 3, and Percent 66.6666666667. That fraction is the whole tool. Matches divided by the word count, times 100, is the percent. Two divided by three, times 100, is the long decimal on the sample. Nothing else is averaged in.
The match ignores letter case, so Cat, CAT, and cat are the same word. The keyword has to appear as whole words. catalog does not contain a match for cat, because catalog is one word. When the keyword itself is more than one word, those words have to sit next to each other in the same order. cat dog matches the end of cat cat dog once. dog cat does not match that text at all. The page slides one word at a time, so a repeated phrase can overlap: the keyword cat cat inside cat cat cat matches twice in three words.
The text must be from 1 to 5000 characters after the ends are trimmed. The keyword must be from 1 to 80 characters. A text that is empty or too long is refused with Enter from 1 to 5000 characters. A keyword that is empty or too long is refused with Keyword must be from 1 to 80 characters. If neither side contains a letter or a digit, the page says Enter a keyword made of letters or digits. Punctuation is not a word. The page splits words as runs of letters, optional marks on those letters, or runs of digits.
This page does not crawl a site, open a page, or count a keyword across many documents. It counts the paste in front of it. It does not recommend a density, and it does not score the writing. The button says Count the keyword. The waiting line is Enter text and a keyword. Reset restores cat cat dog and the keyword cat. Copy result copies the sentence with the count and the percent, not a judgment about whether the percent is high or low.
What a Match Is
A word is a run of letters or a run of digits. The page lowercases both the text and the keyword before it compares, so letter case cannot create or hide a match. A mark attached to a letter can stay with that letter. A comma, a period, a slash, or a quote ends the word, which means cat, still counts as cat. The keyword is split the same way. A keyword of cat is one word wide. A keyword of cat dog is two words wide. A match is a stretch of text words, exactly that wide, that equals the keyword words in order. The stretch cannot skip. Words between the keyword words block the match.
The percent is matches divided by the number of words in the text, times 100. The word count is the text, not the keyword. In the sample there are three text words and two matches, so the percent is 66.6666666667. A keyword that is two words wide still divides by the text word count, not by the number of possible windows. Zero matches is a real result: the headline is 0 of however many words you have, and the percent is 0. The page does not hide a zero, and it does not crawl a site to go looking for more matches.
How cat cat dog Becomes 2 of 3
The sample text lowers to cat cat dog and splits into three words. The keyword lowers to cat and splits into one word. The page looks at word 1, word 2, and word 3. The first is cat, the second is cat, the third is dog. That is two matches. Two divided by three is multiplied by 100, and the printed percent is 66.6666666667. The headline keeps the fraction as 2 of 3 so you can see the inputs of that division without re-counting. The steps under the result say the same thing: split the text and the keyword into words, count each place the keyword words appear in order, then divide the matches by the word count and multiply by 100.
Character length is a different question from this fraction. The Meta Description Length Checker counts the characters in a meta description against a limit of 160. Hello is 5 characters, with 155 remaining. It does not publish the description, and it does not divide a keyword count by a word count. Use it when the thing you need is how many characters you have typed against 160. Use this page when the thing you need is how often a whole-word keyword sits inside one paste. The two counts answer different limits, and neither one crawls a site.
Text the Counter Will Not Search
The page will not fetch a URL that you type in the text box. A URL is just characters. If those characters contain the keyword as whole words, they count. If they do not, they do not. The page will not follow the URL. It will not strip HTML for you. Tags and attributes are text, and their letters become words under the same rules. If you wanted the words a reader sees, paste those words, not the markup, unless the markup is what you meant to measure. The page will not open an account or read a site map.
A paste over 5000 characters is refused before any count. Shorten it. A keyword over 80 characters is refused even if the text is short. A keyword made only of punctuation, or a text made only of punctuation, produces Enter a keyword made of letters or digits. The page does not treat a symbol as a word in order to return a zero. Add a letter or a digit if you meant a real keyword. Spaces do not inflate the word count. Only letter runs and digit runs do. Two spaces between cat and dog still leave two words.
Fractions You Can Recompute
Start with the sample and confirm 2 of 3 and 66.6666666667. Change the keyword to dog. The text cat cat dog has one dog at the end, so the headline is 1 of 3. One divided by three, times 100, is not the sample percent. Change the keyword to cat dog. Those two words sit together once, at the second and third positions, so the headline is 1 of 3 again. The match is one window, not two words counted separately. Change the keyword to dog cat. The order is wrong for this text, so the headline is 0 of 3 and the percent is 0. Change the text to catalog and the keyword to cat. catalog is one word, so the headline is 0 of 1.
Change the text to Cat cat CAT. Case is ignored, so cat matches three times in three words, and the percent is 100. Change the keyword to cat cat and the text to cat cat cat. The windows overlap: positions 1-2 match and positions 2-3 match. The headline is 2 of 3, the same fraction as the sample, for a different reason. Sentence marks are not this count. The Sentence Counter counts sentences that end with a period, a question mark, or an exclamation mark, and a decimal between digits does not end a sentence. A keyword percent can be high in a single sentence or low across many. Count sentences there when the unit is a sentence. Count the keyword here when the unit is a whole-word match.
Limits of a Single Paste
The percent describes one text and one keyword. It does not describe a site, a folder, or a history of drafts. It does not know which words you hoped were important. It does not stem words: cats is not cat, because the letters differ, and the page does not strip a plural. It does not treat cat's as cat if the apostrophe splits the run of letters. Read the word split if a result looks low. Hyphens split words, so a hyphenated form is two words when letters sit on both sides. That can create a match you did not expect, or block one you did.
Mistakes That Skew the Percent
The common miss is to expect a partial word to count. cat inside catalog is not a match. Another miss is to expect a phrase to match with extra words in the middle. cat dog does not match cat and dog. Another miss is to paste markup and then argue with the word count. The letters inside a tag are words if they are letters. Another miss is to read 66.6666666667 as a target. It is two divided by three, times 100, for this sample. A different text produces a different percent. The page will not tell you that a percent is good. A fifth miss is to ignore case in your own check but forget that the page already ignored it. You do not need to lowercase the paste yourself.
Paragraphs are not the denominator. The Paragraph Counter counts paragraphs separated by a blank line, and it also shows the words and characters inside them. A blank line does not start a new density. This page pools the words of the whole paste, then divides matches by that pool. Use the paragraph counter when you want to know how the paste was blocked. Use the keyword count when you want matches over total words. Mixing the two numbers, matches over paragraphs, is a fraction this page does not print.
Using the Fraction on a Draft
Paste the draft, type the keyword you actually intend, and read Matches, Words, and Percent together. The percent without the fraction hides whether you had two hits in three words or two hundred hits in three hundred. The headline is there so you can see both. If the match count surprises you, search the paste for the keyword with whole words in mind: case does not matter, neighbors matter for a phrase, and letter runs matter. Then change the keyword and count again. Each submit replaces the result. The page does not keep a table of keywords.
Reading Matches, Words, and Percent
Read the sample in this order. Matches is 2. Words is 3. The headline repeats 2 of 3. Percent is 66.6666666667. The sentence under the headline repeats all three. If you recompute two divided by three times 100, you should land on that same printed percent. Then read a zero result the same way: Matches 0, Words equal to the real word count, Percent 0, headline 0 of that count. A refusal is not a zero. Enter from 1 to 5000 characters, Keyword must be from 1 to 80 characters, and Enter a keyword made of letters or digits mean there is no fraction to record. Write down the error, fix the field, and count again.
A character cap is a different record from a word fraction. The Twitter Character Counter counts Unicode characters and compares the total with 280. Hello is 5 characters, with 275 remaining. A URL is counted by the characters you typed. That page does not shorten a link, and it does not weigh an emoji as two. It also does not divide keyword matches by words. Use it when the limit is 280 characters. Use the 2 of 3 reading here when the question is how often the keyword occurs in the words you pasted. The page does not crawl a site in either case. This one simply never leaves the text box.
What the Percent Does Not Decide
The percent does not decide whether the draft is finished, whether a reader will notice the word, or whether a search system will treat the page a certain way. It decides a division. You chose the text. You chose the keyword. The page lowercased both, split words, counted ordered whole-word hits, and divided by the word count. If you chose a different keyword, you get a different division. If you include a heading in the paste, its words join the count. If you leave the heading out, they do not. The page cannot know which choice matches your draft.
Checks on the Sample Fraction
Count the sample and confirm 2 of 3, Matches 2, Words 3, and Percent 66.6666666667. Change cat to CAT in the text and count again. The fraction should not move. Change the keyword to catalog inside the sample text and confirm 0 of 3. Change the keyword to cat dog and confirm one match. Change the keyword to dog cat and confirm zero matches. Paste catalog alone with keyword cat and confirm 0 of 1. Clear the text and confirm Enter from 1 to 5000 characters. Clear the keyword and confirm Keyword must be from 1 to 80 characters. Paste only punctuation as the keyword against a real sentence and confirm Enter a keyword made of letters or digits.
Language tags are not a density. The Hreflang Validator checks hreflang tags you type, one per line. en is valid. english is not. It does not fetch a site, and it does not count how often a word appears. Use it when you are checking language codes on lines you typed. Use the cat sample when you are checking this percent. Reset when you want cat cat dog and cat back in the fields, then count once more so the 2 of 3 result is the last thing on screen.