Hidden Text

No Comments
Hidden text

What is hidden text?

Hidden text is content stuffed onto a page for search engines to read but deliberately kept invisible to human visitors, whether by matching the font color to the background, shoving it off-screen, or hiding it behind CSS. Google calls it out by name as a spam-policy violation, and it can drag down rankings or earn a manual action that tanks your visibility.

The intent is what damns it. Collapsing an FAQ behind an accordion or hiding a menu until tapped is normal, accessible design. Piling keyword-stuffed paragraphs into a zero-height div so crawlers see them and users never do is deception, and that's the version Google punishes.

Real examples of the hidden-text trick

These are the patterns to recognize so you can rip them out of a site you've inherited, not a how-to. Each one exists only to feed keywords to a crawler:

/* text painted the same color as the page background */
.spam { color: #ffffff; background: #ffffff; }

/* text shoved far off the visible canvas */
.spam { position: absolute; left: -9999px; top: -9999px; }

/* text crushed to nothing */
.spam { font-size: 0; }
.spam { display: none; }
.spam { visibility: hidden; }

/* opacity trick */
.spam { opacity: 0; }

The giveaway is always the same: a block of keyword-dense copy that no visitor can perceive. Google renders pages now, so display:none on a slab of hidden keywords is trivially detectable, and stuffing links this way makes it worse.

Deceptive hiding vs. legitimate hiding

Not every hidden element is a violation. The difference is whether a real user can reach the content through normal interaction:

TechniqueDeceptive (violation)Legitimate (fine)
Same-color textKeyword block matching background, never revealedNever a valid use
display:noneHides a stuffed keyword paragraph from users onlyTab panel or menu revealed on click/tap
Off-screen positioningHiding link/keyword farms off the canvasSkip-links and screen-reader-only labels
font-size:0Shrinking spam copy to invisibleNever a valid use
Accordion / tabsContent that never becomes reachableContent a user can expand and read
Who benefitsOnly the crawlerThe user, via a real UI control

How to check it on your own site

  1. Select-all the page. Hit Ctrl/Cmd+A on a rendered page. Highlighted text you can't otherwise see is the fastest way to spot same-color hiding.
  2. Diff rendered vs. raw. Compare what's visible in the browser against "View source" and the rendered DOM. Big blocks of copy present in the HTML but absent on screen are suspect.
  3. Use the URL Inspection tool. In Google Search Console, inspect the URL and view the rendered HTML/screenshot Google sees. If Google renders text your visitors don't, that's the exact mismatch it flags.
  4. Grep the CSS. Search your stylesheets and inline styles for left:-9999px, font-size:0, opacity:0, and color values equal to the background. Then confirm each hit is a real UI control, not a keyword dump.
  5. Audit hidden links. Hidden links are treated more harshly than hidden paragraphs. List every anchor inside a hidden container and decide if it belongs.
  6. Check Manual Actions. Search Console flags "Hidden text and/or keyword stuffing" directly under Security & Manual Actions if you've been hit.

Common mistakes and how to fix them

  • A plugin or old theme injecting invisible keyword footers. Fix: find the source (often a "SEO booster" plugin), disable it, and remove the injected markup.
  • Screen-reader-only text mistaken for spam. Fix: legitimate .sr-only / off-screen labels that describe real controls are fine; keep them accurate and don't cram keywords into them.
  • Hiding long content behind tabs, then worrying it won't count. Fix: content reachable via a real UI control gets indexed and is allowed; you don't need to expose everything by default just to rank.
  • White-on-white "extra keywords" left by a previous SEO. Fix: delete it outright. There's no salvage; it's pure liability.
  • Stuffing alt text or ARIA labels with keywords instead of visible content. Fix: write honest alt text and put your real content on the page where users can see it.

Frequently asked questions

Is content hidden in tabs or accordions considered hidden text?

No, as long as a user can reveal it by clicking or tapping. Google indexes content behind interactive UI and treats it as normal. The violation is content that's never reachable by a human, whatever the CSS trick behind it.

Does white-on-white text still get caught in 2026?

Easily. Google renders pages and compares what it sees to what a user sees, so matching text to the background is one of the simplest patterns to detect. It's a fast way to earn a manual action, not a clever hack.

Are hidden links worse than hidden paragraphs?

Generally yes. Hiding links to manipulate PageRank looks like link manipulation on top of the hidden-text problem, which is why it draws harsher treatment. If you find hidden links, prioritize removing them and review whether they point into anything resembling a link farm.

How does hidden text relate to other spam tactics?

It usually keeps bad company. Hidden text often sits alongside doorway pages and cloaking, and all three fall under black hat SEO. If you find one, audit for the others.

My previous developer left invisible text everywhere. Will removing it hurt me?

No; removing it can only help. Hidden keyword text carries no legitimate ranking value, so deleting it costs you nothing and clears a violation. If you already have a manual action, clean it up first, then file a reconsideration request.

Claude Vincent is a technical SEO consultant focused on crawlability, rendering, and AI-search visibility. He writes the field guides and case studies at SEO ProCheck, with a bias toward the durable, unglamorous work that decides whether search engines and AI answer engines can actually read and cite a site.

About SEO ProCheck

Technical SEO consulting and GEO strategy with 20 years of enterprise experience. Case studies, resources, and tools for search and AI visibility.

Work With Me

Technical SEO audits, GEO strategy, site migrations, and international SEO. Hourly consulting for teams who need hands-on support, not just reports.

Subscribe to our newsletter!

More from our blog