Keyword Density Checker
Shows how often every word and phrase appears in a text or web page and what share of all words it makes up. It also checks where a focus keyword appears.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
| # | Keyword | Count | Density |
|---|
Density = times the word or phrase appears ÷ total words × 100. Phrases are not counted across sentence ends. Phrases that start or end with a stop word are skipped when stop words are ignored.
How to Use Keyword Density Checker
- Paste your article, or the HTML source of a page (Ctrl+U in most browsers, then copy). You can also open a .txt or .html file.
- Type a focus keyword if you have one. The tool counts it as an exact phrase.
- Read the tables. Switch between 1 word, 2 words and 3 words, and change the minimum word length or the stop word filter.
- Copy or download the table as CSV to keep it with your notes.
Example: a short cold brew article
Click Sample text. The tool counts 96 words, 57 unique words, 6 sentences and 511 characters. With common stop words ignored, the top single words are:
| Word | Count | Density |
|---|---|---|
| coffee | 7 | 7.29% |
| cold | 6 | 6.25% |
| brew | 4 | 4.17% |
| water | 4 | 4.17% |
| fridge | 2 | 2.08% |
| grounds | 2 | 2.08% |
The two word table puts cold brew first (4 times, 4.17%), and the three word table shows cold brew coffee 2 times. With cold brew coffee as the focus keyword, the tool reports that it appears 2 times and that it is in the first 100 words.
Click Sample HTML to see the same check on a full page. The tool removes the tags, the <script> and the <style> before counting, then tells you whether the keyword is in the <title>, the meta description, an H1, an H2 to H6 and the image alt text. In the sample it is in all of them except the H2.
What counts as one word
Counting tools disagree on these, which is why two checkers can give different totals for the same text. This is how this tool splits them:
| You type | Counted as | Words |
|---|---|---|
| it's | it's | 1 |
| don’t stop | don't, stop | 2 |
| café-bar | café-bar | 1 |
| 1 | ||
| 2026 | 2026 | 1 |
| 3.5 | 3, 5 | 2 |
| U.S. | u, s | 2 |
| co-op's | co-op's | 1 |
| rock'n'roll | rock'n'roll | 1 |
| #hashtag | hashtag | 1 |
| AT&T | at, t | 2 |
Apostrophes and hyphens inside a word keep it whole. Curly apostrophes are treated like straight ones. Full stops split a word, so abbreviations such as U.S. become two words.
How it works
- Density is the number of times a word or phrase appears divided by the total number of words, times 100. The same formula is used for phrases, so a two word phrase that appears 4 times in 96 words has a density of 4.17%.
- Phrases are counted inside a sentence only. “Brew. Coffee” is not counted as the phrase “brew coffee”. Phrases that appear once are left out of the 2 and 3 word tables.
- Stop words are short words such as the, and, of and is. When the filter is on, they are left out of the single word table, and phrases that start or end with one are skipped. They still count toward the total, so densities do not change.
- Numbers are skipped by default because they are rarely keywords. Untick “Ignore numbers” to see them.
- HTML is detected on its own when you paste a page. Text inside scripts, styles, SVG and the <head> is not counted.
Limits
- It does not group word forms, so run, runs and running are counted separately.
- The stop word list is English. In other languages the stop word filter removes nothing useful; turn it off.
- It cannot load a web address. Paste the page source instead.
- Text that a page adds with JavaScript after loading is not in the page source, so it is not counted.
Frequently asked questions
What is a good keyword density?
There is no target number. Google does not publish one, and its spam policies list keyword stuffing as a violation. Use the table to spot words you repeat far more than you meant to, not to hit a percentage.
How is keyword density calculated?
Count how many times the word or phrase appears, divide by the total number of words in the text, and multiply by 100. Seven uses in 96 words is 7.29%.
Why do two keyword density tools give different numbers?
They split words differently (hyphens, apostrophes, numbers), use different stop word lists, and some count phrases across sentence breaks. Some also divide phrase counts by a smaller total. The rules this tool uses are listed above.
Does it read the words in my HTML tags?
No. When you paste HTML it reads only the visible text of the page body. Separately, it checks the title, meta description, headings and image alt text for your focus keyword.
Related Tools
Keyword Overlap Analyzer →
Compare two texts to see shared keywords, words unique to each side, and an…
Meta Title Length Checker →
Check title length in characters and pixels, with a search preview and a bulk…
Color Contrast Checker →
WCAG Contrast Checker - 2AA/AAA contrast between text and background. Pastes hex, shows live…
Diff Checker →
Side-by-side or unified text diff with word-level highlighting, ignore-whitespace/case toggles, .patch download. LCS-based. Free,…
Favicon Checker →
Reads your favicon files to show their real format and the sizes inside, and…
Markdown Link Checker →
Extract and check the links in a Markdown document, flagging empty or malformed URLs.
Password Strength Checker →
Test how strong a password is with a rating, a meter, and improvement tips,…
Readability Score Checker →
Check how readable your text is with the Flesch Reading Ease score and reading…
Social Post Length Checker →
Check your post length against the limits of popular platforms, with a live counter…
Apple App Site Association (AASA) Generator →
Apple App Site Association Generator JSON files for iOS Universal Links. Configure app IDs…
Article Schema Generator →
Generate Article, NewsArticle, or BlogPosting schema markup instantly. Get rich results in Google Search.…
Canonical Tag Generator →
Canonical Tag Generator and Generate rel=canonical, og:url, and twitter:url tags from any URL. -…