Keyword Density Checker
Word and phrase frequency for text or HTML, plus a target keyword check.
Nothing is uploaded; HTML is read as text and never run.
Target keyword
Phrase frequency
Results appear here as you type or paste.
| # |
|---|
There is no ideal keyword density. Google’s spam policies treat repeating words so often that the text sounds unnatural as keyword stuffing — use these numbers to spot repetition, not as a target.
About the Keyword Density Checker
Paste an article, or the HTML source of a page, to see which words and phrases you use most. The table lists one-, two- and three-word phrases with their count and density — the share of all words they make up — and can be sorted by any column.
HTML is converted to its visible text first, without running anything: scripts, styles, comments, <noscript>, <template> and elements marked hidden are skipped. The page <title>, <h1> and meta description are read separately so the target keyword check can tell you whether your main phrase appears in them and in the first 100 words.
How to use it
- Paste your text, or the page’s HTML (in most browsers: right-click → View page source, then copy). Auto-detect works out which one it is.
- Choose 1 word, 2 words or 3 words to see single words or phrases, and set the minimum number of times a phrase must appear.
- Leave Ignore stop words on to hide words like “the” and “of”, and add any other words to ignore.
- Type your target keyword to see its count, density and where it appears.
- Sort the table by phrase, count or density; download it as CSV if you need it elsewhere.
Examples
Green tea is healthy. Green tea has antioxidants, and green tea tastes fresh. Black tea is stronger than green tea.
green tea — 4 times — 40% of 20 words black tea — 1 time
Density counts the words covered: 4 occurrences × 2 words ÷ 20 words = 40%. Phrases never cross sentence punctuation.
Keyword density is a writing aid, not a ranking target
Google publishes no “ideal” keyword density. Its ranking systems are designed to prioritise helpful, reliable content created to benefit people, and its spam policies name keyword stuffing — “repeating the same words or phrases so often that it sounds unnatural” — as spam.
Use the numbers to spot accidental repetition, check that your main topic is actually stated in plain words, and find phrases to vary. Then read the text aloud: if it sounds natural to a person, it is fine.
How the counts work
- Words are found with your browser’s Unicode word rules, so accents and non-Latin scripts work. Contractions (don’t) and hyphenated words (e-commerce) count as one word; case is ignored.
- Phrases are counted only inside a sentence or line: “red, green” is not counted as the phrase “red green”.
- Stop words filter: single stop words are hidden, and phrases that start or end with one (“of the”, “tea and”) are skipped, but phrases with one in the middle (“cup of tea”) are kept.
- Density = count × words in the phrase ÷ total words × 100. Total words include stop words.
Limitations
- Text hidden with CSS (for example
display: nonein a stylesheet) can’t be detected from HTML alone and is counted. - The stop-word list is English. For other languages, turn the filter off and add your own words to ignore.
- Paste the page source: the tool can’t download web pages itself, because browsers block reading other websites (CORS).
Privacy
Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.
Frequently asked questions
What is a good keyword density?
There isn’t one. Google doesn’t publish a target density (it also says it has no preferred word count), and repeating a keyword unnaturally counts as keyword stuffing under its spam policies. Write for readers and use this tool to catch accidental repetition.
Why is my count different from other tools?
Tools differ in how they split words, whether they include stop words in the total, and whether phrase density is counted per occurrence or per word covered. This tool counts all words in the total and multiplies phrase occurrences by the number of words in the phrase.
Does it read text inside images or alt attributes?
No. Only visible text content is counted. Image alt text, link titles and other attributes are left out, as are scripts and styles.
Is my text uploaded?
No. The analysis runs in your browser and the HTML is parsed as plain text — nothing in it is executed or loaded.