How to Fix Keyword Stuffing on Your Website's Pages
Keyword stuffing happens when a page repeats the same exact-match phrase far more often than natural writing would, usually in body copy, headings, alt text or footer blocks. By the end of this guide you will have found the over-optimised pages, measured which phrases are repeated, rewritten them with natural variation, and confirmed that fewer pages are flagged across the site.

Why it matters
Google's spam policies list keyword stuffing as a manipulative practice, so over-repeated phrases can reduce rankings or cause a page to be ignored. AI answer engines favour text that reads naturally and covers a topic through related concepts, so a page that repeats one phrase gives them little to quote. Visitors notice the repetition too, which lowers trust and conversions.
The audit scores this across the whole site, so a template that repeats a phrase on every page can turn one problem into dozens of flagged URLs.
What you need
Step-by-step fix
Group flagged URLs by template
Export the flagged URLs and sort them by path pattern, for example /products/, /blog/, /locations/. If most flagged pages share one pattern, the repetition probably comes from shared content such as a footer SEO block, a sidebar or an auto-generated intro. Fix those shared sources first, because one edit can clear many pages at once.
Handle any remaining one-off pages afterwards.
Measure phrase repetition on each page
Open a flagged page, press F12, go to the Console tab and paste the snippet below. It lists the most repeated two- and three-word phrases, with their counts and frequency per 1,000 words. If one exact phrase scores well above everything else (as a rough guide, more than 20-30 per 1,000 words), or appears several times in one paragraph, that is the phrase to reduce.
Google has no official threshold, so look for anything that reads unnaturally.
const text = document.body.innerText.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu, ' ');
const words = text.split(/\s+/).filter(Boolean);
const counts = {};
for (let n = 2; n <= 3; n++) {
for (let i = 0; i + n <= words.length; i++) {
const p = words.slice(i, i + n).join(' ');
counts[p] = (counts[p] || 0) + 1;
}
}
console.log('Total words:', words.length);
console.table(Object.entries(counts)
.sort((a, b) => b[1] - a[1])
.slice(0, 15)
.map(([phrase, c]) => ({ phrase, count: c, per1000: (c / words.length * 1000).toFixed(1) })));Rewrite body copy with synonyms and entities
Keep the exact phrase where it helps the reader: once in the first paragraph and where it naturally fits after that. Replace the other occurrences with:
- Pronouns and short references ("they", "this range", "each widget")
- Synonyms and variants ("widgets" → "fittings", "components")
- Related entities and attributes: materials, brands, sizes, standards, locations, use cases
Add real information such as specs, pricing context and FAQs in place of the cut repetitions. This improves topical coverage without adding more of the same phrase.
Clean headings, title and meta tags
Check that the <title>, <h1> and <h2> tags don't all repeat the same string. Use the main phrase in the title and H1, then make subheadings describe what each section covers. Delete any <meta name="keywords"> tag.
Google ignores it, and a long comma-separated list is a stuffing signal to other tools.
<!-- Before --> <title>Blue Widgets | Cheap Blue Widgets | Buy Blue Widgets – Example Co</title> <meta name="keywords" content="blue widgets, cheap blue widgets, buy blue widgets, blue widgets uk"> <h2>Blue Widgets Prices</h2> <h2>Why Choose Our Blue Widgets</h2> <!-- After --> <title>Blue Widgets: Steel & Aluminium Sizes | Example Co</title> <h2>Prices and delivery</h2> <h2>Which size fits your project?</h2>
Fix alt text, link text and hidden blocks
Stuffing often sits where editors don't look. Check these places:
- Image
altattributes: describe the image ("Blue steel widget, 40 mm"), not a keyword list - Anchor text: vary internal links instead of using the same exact phrase for every link
- Footer "SEO text", tag clouds and long lists of service-plus-city links
- Text hidden with
display:none, white-on-white text or off-screen positioning
Remove hidden keyword text completely. Don't just reword it.
<!-- Before --> <img src="/img/w1.jpg" alt="blue widgets cheap blue widgets buy blue widgets"> <!-- After --> <img src="/img/w1.jpg" alt="Powder-coated blue steel widget, 40 mm, shown with mounting bracket">
Fix shared templates and auto-generated text
If your CMS inserts the keyword through a template variable, for example "{{product.title}}" repeated in several sections, or a reusable block on every page, edit the template so the variable appears once or twice. For programmatic pages such as city or category pages, write unique intro text per page, or cut the boilerplate to one short sentence.
{%- comment -%} Before: title repeated in every section {%- endcomment -%}
<p>Buy {{ product.title }} today. {{ product.title }} ships fast. Our {{ product.title }} is the best {{ product.title }}.</p>
{%- comment -%} After {%- endcomment -%}
<p>{{ product.title }} ships within 2 working days. {{ product.description | strip_html | truncatewords: 30 }}</p>Re-crawl and confirm fewer pages are flagged
Publish the changes, clear any page or CDN cache, and run the audit again. The check scores the share of crawled pages flagged, so the result improves as you clear shared templates first. Run the console snippet again on two or three fixed pages to confirm the top phrase no longer stands out.
In Google Search Console, use URL Inspection > Request indexing for your most important rewritten pages.
Platform-specific notes
WordPress (Yoast / Rank Math)
Yoast's Keyphrase density and Rank Math's Keyword Density checks tend to push editors to add the keyphrase, not remove it. A red or orange score from over-use is the useful signal. Don't add repetitions just to turn a score green. Check widgets under Appearance > Widgets (or the Site Editor footer template in block themes) for footer keyword blocks, and edit alt text in Media > Library.
Shopify
Product and collection descriptions are edited under Products and Products > Collections. Repetition often comes from theme sections, so go to Online Store > Themes > Customize and check rich-text and footer sections. Also look at product templates in Edit code (sections/main-product.liquid) for repeated {{ product.title }} output.
Wix
Edit visible text in the Editor. Then open each page's Page settings > SEO basics to fix the title and description. Wix doesn't output a meta keywords tag by default, but check Advanced SEO > Additional tags for any custom keyword tags someone has added.
Webflow
For CMS pages, open the Collection template in the Designer and look for text elements bound to the same field (for example Name) in several places. Unbind the extra ones or point them at a different field. Edit alt text in the Assets panel or in image settings for each element.
Next.js / headless CMS
Check shared layout components (footer, breadcrumbs, related-links blocks) and the generateMetadata() output for repeated phrases. Fix repeated copy at the source in the CMS entry or component. Then redeploy, or trigger on-demand revalidation (revalidatePath) so the static pages rebuild.
Check that it worked
✅ How to verify
- Re-run the site audit and confirm the number of pages flagged for keyword stuffing has dropped, ideally to zero.
- Run the DevTools console snippet on fixed pages and confirm no single exact phrase stands far above the others in the per1000 column.
- View the page source (Ctrl+U) and search for the target phrase. Check that the title, H1, alt attributes and footer don't each repeat it, and that no meta keywords tag remains.
- Read each rewritten page aloud as a customer would hear it. It should sound natural, with no repeated phrasing.
⚠️ Common mistakes
- Replacing the exact phrase with one near-identical variant ("blue widget", "blue widgets uk") everywhere. That is still stuffing, just spread across variants.
- Fixing individual pages while a shared footer, sidebar or template block keeps inserting the phrase on every URL.
- Hiding the extra keywords with CSS, in collapsed tabs that contain nothing else, or in alt text instead of deleting them.
- Cutting so much that the page becomes thin. Replace the removed repetitions with real details such as specs, use cases and FAQs.
Is this still an issue on your site? Run a free audit — ZORO checks this and 294 other SEO, AI-visibility, accessibility and security signals, with fixes for your platform.
Check my site freeFAQ
What is the ideal keyword density for SEO?
Google has no ideal density and does not use one as a ranking factor. As a practical guide, use the main phrase in the title, the H1 and early in the body, then once or twice more where it fits. Cover the rest of the topic with related terms. If one phrase makes up more than about 2-3% of all words, that usually reads as stuffed.
Does Google penalise keyword stuffing?
Yes. Keyword stuffing is listed in Google's spam policies. Usually the algorithm demotes or ignores the page, and in severe cases a manual action appears under Security & Manual Actions > Manual actions in Search Console. Removing the repetition and requesting reindexing is the fix.
Will using synonyms instead of my keyword hurt my rankings?
No. Modern search engines understand synonyms, variants and related entities, and pages that cover a topic broadly tend to rank for more queries. Keep the exact phrase in the title and H1, and use natural variation everywhere else.
Should I still use the meta keywords tag?
No. Google has ignored the meta keywords tag for years, and Bing treats a stuffed one as a spam signal. Remove it from your templates or your SEO plugin settings.
How to Fix Missing Image Alt Attributes on Your Website
How to Fix a Missing Keyword in the First 100 Words
How to Fix Non-Descriptive Image File Names for SEO
How to Fix Heading Hierarchy: Nest H2–H6 Without Skips
How to Fix Unreadable URLs: Short, Lowercase, Hyphenated
How to Fix an H1 That Doesn't Match Search Intent