Keyword Density & N-Gram Analyzer
Measure keyword usage the way an algorithm sees it: exact density against the 0.5–2.5% healthy band, a placement matrix across title, H1, opening copy, URL and alt text, phrase proximity, and full 1–4-gram frequency tables — computed in your browser, never guessed.
The density bands, exactly as computed
The phrase appears naturally and often enough to establish relevance. Density = (occurrences × phrase length) ÷ total words × 100, whole-token, case-insensitive.
Usually a sign the copy leans on one phrasing. Swap repetitions for synonyms and pronouns — coverage beats repetition.
Above 4% reads as keyword stuffing to spam classifiers and humans alike; zero means the page never says what it wants to rank for.
How to read density numbers in 2026
Keyword density stopped being a ranking dial years ago — but it never stopped being a diagnostic. Zero density means the page literally never says the thing it wants to rank for, which no amount of semantic understanding fixes. Four-plus percent means a human wrote for a machine, and both notice. The healthy band in this tool (0.5–2.5%) isn't a target to optimize toward; it's the range naturally-written topical copy lands in when it covers a subject properly. Write first, measure second, and treat anything outside the band as a prompt to re-read the copy out loud.
The placement matrix matters more than the raw percentage. Search engines weight where a phrase appears far more than how often: the title and H1 declare the topic, the first hundred words confirm the page delivers it, the URL slug and image alts corroborate it. A page with 1% density but the phrase in all six positions will beat a 3%-density page that buries it in body copy. That's also why this tool asks for your title, description and URL — or extracts them automatically when you paste full HTML.
N-grams are the honest “what is this page about” view. The 2-gram and 3-gram tables surface the phrases you actually repeat — which is either reassuring (your topic dominates) or alarming (a template sentence appears eleven times). The stop-word-boundary rule means the tables show real topical phrases like “rock plate” rather than junk like “of the”. Any 3-gram above 1% of all trigrams gets flagged: that's the empirical line where repetition starts reading as boilerplate.
For the full picture, run the page through the 85-check SEO audit (it runs this same keyword engine plus everything else), check the copy's reading level in the Readability Scorer, and make sure the title you optimized actually fits the SERP in the pixel-accurate preview.
Trusted by Content Teams
“The placement matrix is the feature I didn't know I needed — density was fine but the phrase was missing from the H1 and first paragraph on half our money pages. Pasting full HTML and having it extract everything automatically saves me ten minutes per audit.”
“Finally exact numbers instead of vibes. The 3-gram flag caught a category-page template sentence repeated 14 times that two paid tools never surfaced. CSV export of the n-gram table goes straight into our content briefs.”
“I run every draft through this before delivery. The proximity window taught me I was scattering 'best budget microphone' across paragraphs without ever writing the actual phrase. Density gauge with the visible healthy band is perfect for showing clients why I won't stuff.”
“Deterministic and fast, and nothing gets uploaded — which legal actually cares about for unreleased product pages. Would love saved presets for recurring keywords, but the analysis itself is the most thorough free one I've used.”
Love using our calculator?
The rest of SEO Forge
Similar Calculators
More tools in the same category
SEO Audit Pro
Paste HTML or fetch a live URL and get a unified 85-check audit — on-page, technical, content, links, images, structured data and security — with weighted scores, a fix-first list and JSON/CSV/Markdown export.
SERP & Social Preview
Pixel-accurate Google SERP preview (desktop + mobile, canvas-measured Arial with query bolding) plus Facebook, X, LinkedIn, WhatsApp and Discord card mockups.
Meta Tags Studio
Build a complete, correct <head>: title and description with live character + pixel meters, canonical, robots directives, Open Graph and Twitter cards — copy one clean block.
Readability Scorer
All seven readability formulas — Flesch, Flesch–Kincaid, Gunning Fog, SMOG, Coleman–Liau, ARI, Dale–Chall — computed from first principles with per-sentence highlighting.
Robots.txt Studio
Generate robots.txt with AI-crawler policy presets (GPTBot, ClaudeBot, CCBot…) and test any URL against any file with RFC 9309 longest-match semantics — winning line highlighted.
XML Sitemap Studio
Generate, validate, count and split XML sitemaps against the full protocol: namespace, absolute ≤2,048-char URLs, W3C dates, 50k/50MB limits, freshness histogram and index files.
Often Used Together
Complementary tools for complete analysis
Related Articles
Dive deeper with our expert guides and tutorials related to Keyword Density & N-Grams
exact density · placement matrix · proximity windows · 1–4-gram tables · TTR + MTLD · CSV export · in-browser · Last reviewed: 2026-07