Keyword Density Calculator

Paste a text or the HTML code of a page to see how often every word and phrase occurs, how dense your target keywords are and whether they appear in the title, headings and first paragraph.

  • 1 to 4 word phrases
  • Target keywords
  • Text or HTML
  • Runs in your browser

Input type

Your text is counted in this browser and is never sent to a server.

Counting options
letters

Shorter words are still counted as words; they are only hidden in the 1-word list.

When the input is HTML

Paste a text or open a file to see word counts, keyword density and the most frequent phrases.

How it works

How to check keyword density

The numbers update while you type.

  1. 1

    Paste your text

    Paste a text or the HTML source of a page, or open a .txt, .md or .html file. HTML is detected and the tags are removed before counting.

  2. 2

    Enter your keywords

    Type one or more target keywords, separated by commas, and set the density range you consider good. Each keyword is counted as an exact phrase.

  3. 3

    Read the results

    Compare count, density and placement, browse the most frequent phrases, click one to highlight it in the text, and export the table.

Why ToolCMB

More than a percentage

Counts words the way a reader would, not character strings.

Phrases of 1 to 4 words

Tables of the most frequent words and phrases with count and density. Phrases never run across a sentence end, and hyphenated words count as one.

Target keyword check

For each keyword: occurrences, density, a verdict against your range and whether it appears in the first 100 words.

Understands HTML

Counts only the visible text, optionally without navigation, header, footer and sidebars, and shows whether a keyword is in the title, meta description, H1, H2 or an alt text.

Stop word filter

Hides words such as “the” and “and” in English, German, French and Spanish. The language is detected, or you choose it. Case and accents can be ignored.

Highlight in the text

Click a phrase to mark every occurrence in the text preview and step from one to the next.

Export

Download a table as CSV, copy it for a spreadsheet or save a text report. The summary also gives reading time, speaking time and lexical diversity.

Private by design

Everything runs in your browser. What you type, paste or open is not sent to a server.

Free, no sign-up

No account, no limits, no watermark — on a phone, tablet or computer.

What keyword density tells you — and what it does not

Keyword density is the share of a text that a keyword takes up. The formula used here is: occurrences × words in the phrase ÷ all words × 100. A single word that appears 10 times in a text of 500 words has a density of 2 %. A two-word phrase that appears 5 times in the same text also has 2 %, because it covers 10 of the 500 words. Some tools ignore the length of the phrase, so their figures for phrases are lower.

There is no ideal keyword density. Search engines do not reward a certain percentage, and Google representatives have said so repeatedly. Modern ranking systems look at the meaning of a text, not at how often a string is repeated. The number is still useful as a check: it shows whether your main topic appears at all, which words dominate the page in reality, and whether a phrase is repeated so often that the text reads badly. The default range of 0.5 to 2.5 % is a rule of thumb, not a target.

Common mistakes: repeating a keyword until a quota is met, which is keyword stuffing and against the spam policies of search engines; measuring the whole HTML page with menus and footer, which distorts the result; checking only single words although people search in phrases; and ignoring placement. A keyword that appears naturally in the title, in a heading and near the beginning does more than ten repetitions further down. Use synonyms and related terms where they fit.

How to read the density of a target keyword

ResultWhat it meansWhat to do
Not in the textThe exact phrase does not occurAdd it where it reads naturally, ideally in the title and first paragraph
Below your rangeThe keyword is rareCheck the title, a heading and the introduction
Inside your rangeThe keyword is present without dominatingLeave it and improve the content instead
Above your rangeThe text may read like keyword stuffingReplace some occurrences with synonyms or related phrases

Tips

  • Put the main keyword into the title and description, and check their length, with the Meta Tag Generator.
  • Looking for a pattern rather than a fixed phrase? Count the matches with the Regex Tester.
  • Give the page one clean address with the Canonical URL Generator and describe its content to search engines with the Schema Generator.
  • Read the text aloud after editing. A sentence that sounds odd because of a keyword should be rewritten, whatever the percentage says.
FAQ

Frequently asked questions

Can’t find your answer? Contact us — we reply quickly.

What is a good keyword density?

There is no official value. Many writers aim for roughly 0.5 to 2.5 %, which is the default range here, but search engines do not rank by percentage. If the text reads naturally and covers the topic, the density is fine.

How is keyword density calculated?

Occurrences × words in the phrase ÷ total words × 100. A two-word keyword that appears 5 times in 500 words has a density of 2 %. Numbers are left out of the word count unless you switch them on.

Is keyword density a ranking factor?

No. Search engines evaluate relevance and quality, not a share of repeated words. A keyword still has to appear for a page to be clearly about it, so the check helps you find gaps and excess.

What is keyword stuffing?

Filling a page with repetitions of a keyword to manipulate rankings, for example lists of phrases or unnatural sentences. It violates the spam policies of search engines and can cause a page to rank lower or be removed.

What are stop words?

Very common function words such as “the”, “of”, “and” or “is”. They top every word list without saying anything about the topic, so the tool can hide them. They are still counted in the total number of words.

Is my data sent to a server?

No. The tool runs entirely in your browser. Your input is not uploaded, logged or stored on our servers.

More free SEO and website tools

Generate tags and files, check status codes, redirects, DNS and certificates — free, without an account.

Browse all tools