Keyword Density Analyzer
Analyze pasted text or HTML for word and n-gram (1/2/3-word) frequency and density, with configurable stop-word lists, stemming, position weighting (title/H1/H2/body/anchor), and over-optimization flags — not magic % targets. 100% client-side.
About Keyword Density Analyzer
Analyze pasted text or HTML for word and n-gram (1/2/3-word) frequency and density, with configurable stop-word lists, stemming, position weighting (title/H1/H2/body/anchor), and over-optimization flags — not magic % targets. 100% client-side. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
What is the ideal keyword density?
There is no ideal percentage. Google rewards relevance, not ratios. This tool flags potential stuffing (e.g., density above ~3–4% on a single term) but never prescribes a magic number. Aim for natural usage with related terms and synonyms.
How is density calculated?
Density = (term count / total non-stop-word tokens) × 100. For n-grams, the denominator is total n-gram slots. We use Intl.Segmenter where available (CJK-friendly) and fall back to whitespace tokenization.
What extras does this tool include?
Extras: (1) 1/2/3-gram frequency tables with count + density %, (2) Stop-word toggle + language presets (en/es/fr/de/it), (3) Porter stemmer toggle for grouping inflections, (4) Position weighting (title/H1/H2/body/anchor), (5) HTML element breakdown, (6) Over-optimization flags, (7) Reading-level (Flesch) + word/char count, (8) Highlight occurrences in source text, (9) CSV export, (10) CJK/Thai support via Intl.Segmenter, (11) HTML entity decoding, (12) Stop-word editor, (13) Sortable tables, (14) Sample comparison.
Does the tool fetch URLs?
No. Paste text or HTML only — no network. We strip HTML server-side-free using DOMParser-free regex; everything runs locally.
Related tools
Affiliate Commission Calculator
Calculate affiliate commissions across four program types — flat percent, tiered percent (progressive brackets), recurring (monthly × N months), and hybrid (initial + recurring). Apply refund-rate and tax-withholding adjustments, compute effective commission rate, compare two program types side-by-side, and project break-even sales to hit a target income. History (localStorage) + shareable URL. 100% client-side.
Affiliate Link Cloaker & Redirect Generator
Cloak affiliate links into pretty URLs and generate redirect scripts (PHP, JavaScript, HTML meta refresh), plus .htaccess, nginx, and robots.txt rules. CSV import of slug/affiliate_url pairs, slug auto-generator from hostname, click-tracking parameter builder, URL-shortener compatibility check, history (localStorage), shareable URL. 100% client-side.
Anchor Text Distribution Analyzer
Analyze anchor text distribution from backlink data. Categorize anchors as exact/partial match, branded, generic, naked URL, or image. Compute distribution %, warn on over-optimization, and export. 100% client-side.