Keyword Density Checker

100% private — runs on your device, never uploaded. Works offline once loaded.

Paste any text to see how often each word and phrase appears and its density percentage, broken down into single keywords, two-word and three-word phrases. Runs entirely in your browser.

What keyword density tells you

Keyword density is the percentage of a page's words that are a given keyword or phrase. It's a quick way to audit what a piece of content is actually 'about' according to its own words, and to catch two opposite problems: a target keyword that barely appears, or one that's repeated so often the writing reads as spammy.

This tool tokenizes your text, counts every one-, two- and three-word phrase, and ranks them by frequency alongside a density percentage, so you can see your dominant terms at a glance.

The formula and n-grams

Density for any phrase is simply its count divided by the total number of words, times 100. This tool computes that for three phrase lengths, called n-grams:

  • 1-grams: single keywords (e.g. 'coffee').
  • 2-grams: two-word phrases (e.g. 'cold brew').
  • 3-grams: three-word phrases (e.g. 'single origin beans').
  • Density % = phrase count ÷ total words × 100, using the full word count as the denominator.

Using the stop-word toggle

Left unfiltered, the top of any frequency list is just 'the', 'and', 'to' and other glue words that appear in every document regardless of topic. Turning on 'Exclude stop-words' removes phrases containing those common words so the rankings reflect your subject matter instead.

For single-keyword analysis, filtering stop-words is almost always what you want. For phrase analysis, it's a judgement call: some meaningful phrases legitimately contain a stop-word (like 'return on investment'), so review both filtered and unfiltered views if a phrase matters to you.

Density is a signal, not a target

It's a myth that hitting a specific keyword-density percentage improves rankings. Modern search engines understand synonyms, entities and context, and they penalize obvious keyword stuffing. Use this tool to confirm your primary topic is clearly represented and to spot over-optimization — not to chase a number.

If your target keyword doesn't appear in the top phrases at all, your content may be off-topic or too vague. If one keyword is wildly over-represented, vary your language with synonyms and related terms. Natural, varied writing that thoroughly covers a topic will always outperform mechanical repetition.

Frequently asked questions

Is my text sent anywhere?

No. Tokenizing, counting and ranking all happen locally in your browser. Nothing you paste is uploaded or stored.

How are words counted?

The tool lowercases the text and extracts runs of letters and digits (keeping internal apostrophes, so "don't" stays one word). Punctuation and symbols are treated as separators.

Why is the denominator the total word count even when I exclude stop-words?

Density is defined as a phrase's count relative to the whole document, so the total word count is the natural denominator. Excluding stop-words filters which phrases are shown, but the density percentage still reflects the phrase's share of the entire text.

Can I check density for an exact keyword?

Yes — scan the ranked tables for your target term or phrase. Its row shows the exact count and density percentage. Use the phrase-length tables to find multi-word keywords.

Does higher density mean better rankings?

No. Beyond making sure your topic is clearly present, pushing density higher offers no benefit and risks looking like keyword stuffing, which can hurt. Prioritize helpful, well-written content.

What's a good number of times to use my main keyword?

Enough that it appears naturally in the title, an early paragraph and a few times through the body — not a fixed count. Let the topic and length guide you rather than a density target.

Advertisement