Back to home

Keyword Density Checker

Paste your text or HTML code. The tool counts words, lists the most repeated words and phrases with their density, and for HTML also shows the heading outline.

  1. Paste your text or HTML
  2. Choose single words or phrases
  3. Read the counts and the outline
Loading the tool...

Your files never leave your device

Reading the counts

Keyword density is the number of times a word or phrase appears divided by the total number of words. Paste your text, or the HTML of a page, and the tool counts the words, lists the most repeated single words, two-word or three-word phrases, and shows the percentage for each. For HTML it also shows the heading outline and the title and meta description.

A worked example

Suppose an article has 400 words and the phrase coffee grinder appears 8 times. Because a two-word phrase uses two of the words each time it appears, the tool calculates 8 times 2 divided by 400, so the density of that phrase is 4%. If the single word coffee appears 20 times, its density is 5%, and that may be a sign that the text sounds repetitive.

Use the settings to tidy the list. Raise the minimum word length or the minimum repeats to hide noise, and add your own words to the ignore list, such as the name of the site.

Using it for better writing

There is no ideal percentage and search engines do not reward hitting one. Use the table to spot a word you repeat too often, or an important topic that is missing, and then edit the text so it reads naturally.

For HTML, the warnings are practical checks. A page should normally have exactly one H1, headings should not skip levels, and every image should have a short alt text. Fixing these helps readers and screen readers as well as search engines.

Frequently asked questions

What is a good keyword density?

There is no ideal number. Natural writing matters more than hitting a percentage, and a high value usually just means the text is repetitive.

Does it run the scripts in my HTML?

No. The HTML is only read as text, nothing is executed or loaded, so it is safe to paste untrusted pages.

Why are some words missing?

Short words and words in the ignore list are skipped, and phrases need a minimum number of repeats. Change the settings to show more.

Which languages work?

Any language your browser can split into words, including Chinese, Japanese and Arabic.

What do the heading warnings mean?

A page should normally have exactly one H1, and headings should not skip levels, for example an H2 followed directly by an H4.

Is my text uploaded?

No. The analysis happens on your device and your text is never sent anywhere.

Related tools

Save this tool to use it later

Add this page to your browser bookmarks by pressing Ctrl + D