Start for $1
  • $1 for a 7-day trial. When the 7 days end, your card is charged from $95 a month for one site, and the plan renews every month until you cancel.
  • Cancel any time with our ready-made cancel email. No reason needed.
  • Your first paid month can be refunded within 7 days of paying it. Write to hello@blogautopost.com.

Keyword density checker

Paste text and a target phrase to see how often it appears and what share of the words it takes. Nothing leaves your browser.

Last updated

Plain text, Markdown or HTML. The text stays in this page. It is not sent anywhere.

Common words such as the, and, of. They are left out of the tables, never out of the count.

Paste some text to see its counts. An empty box has nothing to measure.

What this tool shows

Paste text and, if you like, a target phrase. For the phrase the tool reports how many times it appears, what share of all the words it takes up, the word positions where it starts, whether it appears in the first 100 words, and whether it appears in a heading when the text has Markdown or HTML headings. Below that it lists the most used single words, two-word phrases and three-word phrases, with common small words left out. It runs in your browser, so the text is not sent anywhere.

The formula

density (%) = occurrences x words in the phrase / total words x 100

Multiplying by the number of words in the phrase makes the share comparable across phrases: a two-word phrase that appears 5 times takes up 10 of the words, not 5. Matching follows four rules. It works on whole words, so "cat" is not found inside "category". It ignores capitals and the accents on Latin letters, so "CAFE" finds "café". It counts matches from left to right without overlap, so "a a" appears once in "a a a". And the words of a phrase must be separated by spaces or line breaks only, so "free, trial" does not match "free trial".

What the tables leave out

The tables skip small common words such as "the", "and" and "of", using the open stopwords-iso lists for English, Spanish, French, German, Portuguese, Italian, Dutch (MIT license). You can switch the list or leave none out. A word or phrase must appear at least twice to be listed, and a phrase is skipped if it starts or ends with a small word or contains a bare number. The small words are left out of the tables only; they still count toward the total number of words and toward the phrase search.

What Google says

Google's documentation gives no ideal percentage. Its spam policy defines keyword stuffing as filling a page with keywords or numbers to manipulate rankings, with the example of repeating the same words or phrases so often that the text sounds unnatural, and it names no number. Its SEO starter guide says that excessively repeating the same words, even in variations, is tiring for users, and that it is against the spam policies. For that reason the tool shows counts and shares and never rates a result as high or low.

Worked example

The sample text, a Markdown heading and one paragraph:
# Coffee at home

Good coffee at home starts with fresh beans. Fresh beans, ground just before brewing, make better coffee than beans ground weeks ago. Buy small bags of beans and store them away from light.
MeasureResult
Total words36
Target phrase"fresh beans" (2 words)
Times it appears2
Share of all words11.11%
Starts at word positions10, 12
In the first 100 wordsYes
In a headingNo

Read the share by hand to see the formula at work: 2 appearances of a 2-word phrase in 36 words is 2 x 2 / 36 x 100 = 11.11%. The text has 36 words, under the 100 the tool wants for a useful table, so it adds a note that the tables are thin. In the table of words, "beans" leads with 4 appearances.

Short texts and odd inputs

  • Under 100 words, the tables carry a note that they are too short to be useful, and are still shown.
  • A phrase longer than the text cannot appear in it, so the result is 0 appearances and a share of 0%.
  • An empty text has nothing to measure, so no share is shown.
  • If you paste HTML, tags and scripts are removed before counting, so tag names are not counted as words.

Frequently asked questions

What is the right keyword density?

Google's documentation gives no ideal percentage. Its spam policy and SEO starter guide warn against repeating words so often that the text sounds unnatural and name no number. Use the share to spot an overused phrase, and write for the reader first.

How is the density calculated?

It is the number of times the phrase appears, multiplied by the number of words in the phrase, divided by the total number of words, times 100. Matches are whole words, ignore capitals and Latin accents, and do not overlap.

Why is a common word missing from the tables?

The tables leave out small words such as "the" and "and" using the stopwords-iso lists, so the table shows the words that carry the subject. Choose "Leave none out" in the language box to see them. They are always part of the total word count.

Can I check a phrase in another language?

Yes. Matching works on any language the browser can split into words. The small-word list is available for English, Spanish, French, German, Portuguese, Italian and Dutch; for other languages choose "Leave none out".

Is my text stored or sent anywhere?

No. Everything is computed in your browser. The text box takes up to 100,000 characters and refuses longer text with a message instead of cutting it.

Sources

Put BlogAutoPost on your blog

Start a 7-day trial, connect your WordPress, Shopify or Webflow blog and approve the first draft yourself.

  • $1 for a 7-day trial. When the 7 days end, your card is charged from $95 a month for one site, and the plan renews every month until you cancel.
  • Cancel any time with our ready-made cancel email. No reason needed.
  • Your first paid month can be refunded within 7 days of paying it. Write to hello@blogautopost.com.