Most pages need one main keyword and a handful of secondary keywords: the other words people type when they want the same thing. This guide shows how to tell which keywords belong on one page, where to add them in your HTML, how often to use them, how many go in the meta keywords tag, and what crosses the line into keyword stuffing.
Short answer:
- Per page: one primary keyword, plus the 2 to 5 secondary keywords that share its search intent.
- In the HTML: the title tag, the H1, the first paragraph, one or two H2s, the meta description and the URL.
- In the meta keywords tag: none for Google, which ignores the tag. If you keep it for another reason, 3 to 10 phrases that are on the page.
How many keywords per page?
Think in searches, not in words. A page should answer one search intent: one thing a person wants to know or do. Every keyword that expresses that same intent can share the page; a keyword that needs a different answer needs its own page.
This article is an example. "How many keywords for SEO", "how many SEO keywords should I use", "keywords per page" and more than a dozen other wordings are the same question, so one page answers them all. Even "how many meta keywords should I use" lands here: the pages Google ranks for it are general guides to keyword counts, so it is a section of this guide, not a separate post. A page that ranks well usually shows up for many such variations, most of which it never repeats word for word.
To decide whether two keywords belong together, search both and compare the first page of results. When we did this for our own tools, "check keyword density" and "keyword density calculator" shared 7 of their 9 results, so one page, the Keyword Density Checker, covers both. "Word frequency counter" shared none of them, so it got its own Word Frequency Counter page.
| What you see | What it means | Do this |
|---|---|---|
| Mostly the same pages rank for both | Google treats them as one intent | Target both on one page |
| A few pages overlap | Related but different needs | One page, the other as a section, or two linked pages |
| No pages overlap | Different intents | Separate pages that link to each other |
How many keywords per blog post?
The same rule applies: one main keyword per post. A longer post does not need more main keywords; it needs more of the subtopics a reader expects. Each H2 can answer a related question and carry a secondary keyword, the way this post has sections on keywords in HTML, the meta keywords tag and keyword stuffing.
What a post should not do is chase two different intents. "How to make a barcode" and "what is a UPC code" sound close, but one searcher wants steps and the other wants an explanation. Two focused posts that link to each other beat one post that half-answers both.
Primary vs secondary keywords
The primary keyword (also called the focus keyword or main keyword) is the search the page is built for. Secondary keywords are its synonyms, close variations and the subtopics that complete the answer. Here is how that looks for our keyword density page:
| Role | Keyword | Where it goes |
|---|---|---|
| Primary | keyword density checker | Start of the title tag, the URL, the opening paragraph |
| Secondary | keyword density calculator | The H1, which should not simply repeat the title |
| Secondary | check keyword density | The meta description and the first lines of text |
| Subtopic | what is a good keyword density | A question in the FAQ |
| Subtopic | keyword stuffing | Its own H2 section |
How to add SEO keywords in HTML
Keywords do their work in a few specific places in a page's code. Here is the same keyword density page in HTML, simplified: the primary keyword opens the title, a secondary keyword leads the H1, and the description carries the primary and another secondary keyword.
<head>
<title>Keyword Density Checker: Count Keywords in Text - HeavyToolz</title>
<meta name="description" content="Free keyword density checker: check keyword density in any text or page HTML, count 1-3 word phrases and spot keyword stuffing. Nothing is uploaded.">
</head>
<body>
<h1>Keyword Density Calculator and Keyword Stuffing Checker</h1>
<p>Paste your article or page HTML to count every keyword and phrase, see its density and where it appears, and catch stuffing before Google does.</p>
<h2>What the checker counts</h2>
...
</body>
| HTML | Keyword? | How |
|---|---|---|
<title> | Yes, the primary | Near the start, within about 60 characters. Preview it with the SERP Preview Tool so it is not cut off. |
<meta name="description"> | Primary and one secondary | A sentence that makes the click worth it. It is not a ranking factor, but matching words can show in bold. |
<h1> | Yes, a variation | One H1 per page, using a secondary keyword rather than a copy of the title. |
First <p> | Yes, once | Say what the page is about in the first few lines. |
<h2>, <h3> | Where it is honest | A secondary keyword that really names the section. |
| URL | Yes, short | A slug such as /keyword-density-checker. The Slug Generator makes one from a title. |
<img alt> | Only if it fits | Describe the image for people who cannot see it; a keyword belongs only if it is part of that description. |
| Link text | For internal links | Link to your pages with words that describe them, not "click here". |
<meta name="keywords"> | Optional | Ignored by Google. See the next section. |
You do not have to type the head tags by hand: the Meta Tag Generator writes the title, description, canonical and social tags from a form and previews the Google result. On WordPress, Shopify, Wix or Blogger you type the title and description into the platform's SEO fields instead, and it writes the tags for you.
How many keywords in the meta keywords tag?
The meta keywords tag is a line in the page's head that lists keywords:
<meta name="keywords" content="keyword density, keyword density checker, keyword stuffing">
It was built for search engines in the 1990s and was abused so heavily that the big engines stopped trusting it. This is where each one stands today:
| Search engine | Uses it? | What they say |
|---|---|---|
| No | "Not used by Google Search, and it has no effect on indexing and ranking at all." Google first said so in September 2009. | |
| Bing | No ranking value | "Dead in terms of SEO value" (2014). Earlier Bing said a stuffed tag can be a hint of other spam. |
| Yandex | Can count | The tag "can influence the page's relevance to search queries." |
So, how many meta keywords should you use? For Google, none: leaving the tag out costs nothing. If you keep it for Yandex, for your own site search, or because your CMS reads it, use 3 to 10 phrases that appear on the page, separated by commas, with no repeats. Rank Math's glossary gives the same range, five to ten.
Is there a meta keywords limit? Not in HTML: the standard only says the value is a comma-separated list of keywords relevant to the page. The practical limit is common sense. A long list brings no benefit, can look like stuffing to Bing, and shows competitors exactly which keywords you are after. If an old site has a stuffed tag, trim it to a few honest phrases or remove it.
To see which meta keywords a page uses, open it, press Ctrl+U and search the source for name="keywords", or paste the source into the Meta Tag Generator's Check mode, which lists the tag next to the title, description and every other head tag.
Focus keyphrase in Yoast and Rank Math
WordPress SEO plugins ask for a focus keyphrase so they can run their checks. Yoast SEO takes one focus keyphrase in the free version, and Premium adds up to four related keyphrases. Rank Math's free version accepts up to 5 focus keywords, with the first one treated as the primary; Rank Math PRO allows more.
Two things to know. First, these fields are for the plugin, not for Google: Rank Math's own documentation says focus keywords are not sent to Google, so they are not a meta keywords tag in disguise. Second, their scores are the plugin's targets, not ranking rules. Rank Math's density test, for example, gives full marks between 1% and 1.5% and warns above 2.5%. A green light is a useful prompt; it is not a promise.
How many times should a keyword appear?
There is no right number, and Google has said it does not use keyword density as a ranking signal. Use the keyword where it fits, then write about the topic. Keyword density is simply the share of the text a keyword takes:
density = uses ÷ total words × 100
In a 1,000-word article, natural writing often uses the main keyword 5 to 20 times, which is 0.5% to 2%. If a phrase passes about 3%, read the text again: it usually sounds repetitive before it looks like a problem on paper. Paste your draft into the Keyword Density Checker with your keywords as targets to see each one's count, density and first use.
Too many keywords: what keyword stuffing looks like
Keyword stuffing is filling a page with keywords to manipulate rankings, and Google's spam policies list it as a violation. It reads like this:
Stuffed: Looking for cheap shoes? Our cheap shoes store sells cheap shoes for men, cheap shoes for women and cheap shoes for kids. Buy cheap shoes online today.
"cheap shoes" appears 6 times in 27 words, a density of 22.2%. The same message, written for a person:
Natural: Looking for cheap shoes? We stock affordable styles for men, women and children, with new arrivals every week and free returns on every order.
Now "cheap shoes" appears once in 24 words (4.17%), and the sentence tells the reader more. Other signs of stuffing are lists of towns or keywords with no sentence around them, the same keyword in every heading, a meta keywords tag with dozens of phrases, and text hidden from visitors. The fix is always the same: say it once, clearly, then use pronouns and related words.
Check a page in five minutes
Step 1: List the keywords
Write down the page's primary keyword and its 2 to 5 secondary keywords.
Step 2: Check the head tags
Open the page, press Ctrl+U, copy the source and paste it into the Meta Tag Generator's Check mode. Confirm the title holds the primary keyword and that the title and description lengths are marked ok.
Step 3: Count the keywords in the text
Paste the same source into the Keyword Density Checker with your keywords as targets. The Title, H1 and H2 columns show where each keyword is missing.
Step 4: Read anything marked high
If a phrase is marked high, read the highlighted sentences and rewrite the ones that repeat it.
Step 5: Catch other repeats
Paste the article text into the Duplicate Word Finder to catch other overused words and doubled words such as "the the".
The three tools are free and run in your browser: the Meta Tag Generator for the head tags, the Keyword Density Checker for the text and the Duplicate Word Finder for repeats.
Questions people ask
How many keywords should I use for SEO?
One primary keyword per page, plus the secondary keywords that share its search intent, usually 2 to 5. If two keywords need different answers, they need different pages.
How many keywords per blog post?
One main keyword, like any page. A longer post covers more subtopics, and each H2 can carry a related secondary keyword, but it should still answer one search.
How many meta keywords should I use?
For Google, none: Google says the keywords meta tag has no effect on indexing or ranking. If you keep the tag for Yandex, a site search or a CMS that reads it, use 3 to 10 phrases that appear on the page; Rank Math suggests five to ten.
Is there a limit on meta keywords?
The HTML standard sets no limit; it defines the tag as comma-separated keywords relevant to the page. A long list brings no benefit and can look like spam to Bing, so keep it short or leave the tag out.
How many keywords should be in a title tag?
The primary keyword, near the start, and at most one secondary keyword if it fits naturally within about 60 characters. A title packed with keywords reads badly and Google may rewrite it.
How many keywords should be in a meta description?
The primary keyword and one secondary keyword, written as a normal sentence. The description does not affect ranking, but matching words can be shown in bold in the result.
Where do I put keywords in HTML?
In the <title> tag, the meta description, the <h1>, the first paragraph, one or two <h2> headings, the URL, and image alt text where it honestly describes the image. The meta keywords tag is optional and ignored by Google.
Can one page rank for many keywords?
Yes, and good pages usually do. A page that fully answers one question tends to rank for many ways of asking it. What fails is one page trying to answer several different questions.
How many keywords should a website have?
As many as it has pages that deserve them. Each page gets its own primary keyword, and no two pages should chase the same one, or they compete with each other in the results.
Is it bad to use too many keywords?
Using many related words is good: it shows you cover the topic. Repeating the same keyword far more than a reader needs is bad, because it reads poorly and can be treated as keyword stuffing.
Sources
- Google Search Central: Google does not use the keywords meta tag in web ranking (21 September 2009) and Meta tags and attributes that Google supports.
- Google Search Essentials: spam policies (keyword stuffing).
- Bing Webmaster Blog: Blame the meta keyword tag (October 2014).
- Yandex Webmaster help: meta tags the Yandex robot takes into account.
- WHATWG HTML standard: standard metadata names (keywords).
- Rank Math: meta keywords glossary entry; Yoast and Rank Math help pages for their focus keyphrase limits and checks.
- The example counts and densities above are worked out with the same rules as the Keyword Density Checker. Last checked: 22 November 2026.