induwara.lk
induwara.lkSEO · Text

Keyword Density Checker

Paste any article and instantly see how often every word and phrase appears, with its keyword density as a percentage. Catch over-used terms that risk Google's keyword-stuffing penalty and check that your focus keyphrase sits in the healthy 0.5%–3% range. Runs entirely in your browser — no upload, no signup.

By Induwara AshinsanaUpdated Jun 24, 2026
Keyword density analysis

Runs entirely in your browser. Nothing is uploaded, logged, or stored.

The exact phrase you want to rank for. We count it and grade its density.

Hide terms that appear fewer than this many times.

Total words
0
Unique words
0
Sentences
0
Characters
0
0 without spaces
Reading time
0 min
at 200 wpm

Density table

Phrase length

No text analysed yet

Paste content above (or load a sample) to see word and phrase frequency, keyword density, and stuffing warnings.

Method: raw term frequency (Manning et al., 2008). Keyphrase-density formula and the 0.5%–3% healthy band from Yoast SEO; stuffing warning from Google Search Central.

How it works

Keyword density measures how often a term appears relative to the total number of words on a page. The counting model is raw term frequency— the literal number of times a token occurs — defined in Manning, Raghavan & Schütze's Introduction to Information Retrieval (Cambridge, 2008). The density percentage itself uses the formula documented by Yoast SEO:

density = (keyphrase count ÷ total words) × 100

The tool runs entirely client-side in four deterministic steps:

  1. Normalise.The text is lowercased and every run of non-alphanumeric characters is replaced with a single space, keeping intra-word apostrophes and hyphens so “co-op” and “don't” stay intact.
  2. Tokenise. The normalised text is split on spaces into a word array. Its length is the total words — the denominator for every density figure.
  3. Count. For single words, each unique token is tallied. For 2- and 3-word phrases, a sliding window walks every contiguous sequence and counts exact matches. Density is each count divided by total words.
  4. Grade the focus keyphrase. If you enter one, its exact occurrences are counted and mapped to a band: under 0.5% (under-used), 0.5%–3% (healthy), or above 3% (stuffing risk).

The healthy 0.5%–3% band comes from Yoast's keyphrase-density guidance; the upper warning aligns with Google Search Central's keyword-stuffing policy, which treats cramming a page with keywords to manipulate rankings as spam. When “ignore common words” is on, stop words (the, a, of, to, and…) are hidden from the table, but they are never removed from the total-word denominator — so densities stay comparable to what a search engine actually measures.

For credibility the focus keyphrase is counted two independent ways: a sliding token window and a separate text scan. If the two ever disagree, the tool shows a warning instead of a silent number — the same dual-method check the site's tax calculator uses against the IRD formula.

Worked examples

Example 1 — phrase stuffing

Text: "Sri Lanka travel guide. Sri Lanka is beautiful. Visit Sri Lanka."

  1. Tokenise → [sri, lanka, travel, guide, sri, lanka, is, beautiful, visit, sri, lanka]
  2. Total words = 11
  3. "sri": 3 ÷ 11 × 100 = 27.27%
  4. Bigram "sri lanka": 3 ÷ 11 × 100 = 27.27%
  5. Focus "sri lanka" → 27.27% ≫ 3% → STUFFING RISK

Example 2 — healthy focus keyphrase

200-word article, focus keyphrase "fixed deposit" used 4 times.

  1. Density = 4 ÷ 200 × 100 = 2.00%
  2. 0.5% ≤ 2.00% ≤ 3% → HEALTHY
  3. Add 3 more mentions (7 total): 7 ÷ 200 × 100 = 3.50%
  4. 3.50% > 3% → verdict flips to STUFFING RISK → trim back

Example 3 — the 3% boundary (edge case)

1000-word article — exactly where the verdict tips over.

  1. 30 mentions: 30 ÷ 1000 × 100 = 3.00% → HEALTHY (band is inclusive)
  2. 31 mentions: 31 ÷ 1000 × 100 = 3.10% → STUFFING RISK
  3. So the safe ceiling for one phrase here is 30 mentions.

Frequently asked questions

Sources & references

The keyphrase-density formula and the healthy 0.5%–3% band on this page were last reconciled against the Yoast and Google Search Central sources on 2026-06-24.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want to suggest an improvement?

Email me at [email protected] — most fixes ship within 24 hours.