Keyword Density Checker

Count your chosen phrases in plain text or local HTML, with separate content and metadata regions.

Text stays in this browser and is not saved or uploaded. Spellcheck is off.

Load UTF-8 HTML or text

Text analysis allows 200,000 characters; static HTML allows one million. Unicode style previews allow 20,000. These bounds protect local processing, not daily usage.

Density = non-overlapping matches ÷ all region words × 100. Matching uses Word Counter tokenization, case/apostrophe normalization and sentence/line boundaries. Zero matches remain visible. There is no ideal density or ranking score.

HTML is parsed as inert data, with scripts, styles, templates and hidden attributes excluded. CSS and JavaScript rendering are not simulated. No URLs or embedded resources are fetched. Main content falls back to body when no main element exists.

How to use this tool

  1. Paste plain text or static HTML. Choose the matching source type; no URL is fetched.
  2. Enter up to 20 target phrases, one per line, and analyze.
  3. For HTML, switch between main content, body, title, description, H1, H2 and image alt text. Review zero matches and matching snippets.
  4. Download the region report as CSV. Edit your source for readers; this tool does not recommend an ideal percentage or predict rankings.

Try a known example

The supplied HTML example has 12 main-content words. “local tools” appears three times there, so its density is 3 ÷ 12 × 100 = 25%. The title, description, H1 and image-alt regions each contain one match. “missing phrase” remains visible with zero matches.

Try a working example

Questions and useful limits

What does density mean here?

Non-overlapping phrase matches divided by the region’s word count, multiplied by 100. A multi-word phrase counts as one match. Tokenization follows Taskono Word Counter, with case and apostrophe normalization; matches do not cross sentence or line boundaries.

Is this a live website crawl?

No. A local inert parser reads the HTML you provide. Scripts, styles, templates, SVG, canvas and hidden attributes are excluded. CSS and JavaScript visibility are not simulated. Main content falls back to body when there is no main element.

What is the best keyword density?

There is no ideal percentage claimed here. Counts help review chosen phrases and missing topics; they do not measure usefulness, search-engine relevance or ranking potential.

More free tools