Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Hidden Text in SEO: What It Is, What Google Penalizes and What Is Allowed

Hidden text is content search engines can read but visitors cannot see. Learn which techniques Google penalizes, what it accepts, and how to check a page.

Sorank customerSorank customerThomas Girauc, Sorank customerCelio Fabiano, Sorank customerSorank customerXavier Breull, Sorank customer
+ 9'000 Subscribers
Hidden Text in SEO: What It Is, What Google Penalizes and What Is Allowed
Notification: your site reached 20K clicks from Google Search in 28 days

Tools

On this page

Summary

Hidden text is text or links that search engines can read but a human visitor cannot easily see, such as white text on a white background, text hidden behind an image, or text placed off-screen with CSS. Google treats it as spam when it is used to manipulate rankings.

Want to go further? Ask

Hidden text is content that sits on a page in a way that visitors cannot see or easily find. Some site owners use it to add keywords that do not help readers. Google groups it under "hidden text and link abuse" in its spam policies.

What is hidden text in SEO?

Hidden text is any text that a search engine can read but a visitor does not see. It is a problem only when the goal is to manipulate rankings. Google's spam policies say that hidden text or link abuse is content placed "solely to manipulate search engines" and "not to be easily viewable by human visitors."

Hidden text is one of the tactics in black hat SEO, the group of methods that break search engine rules. Not every hidden element is a problem. Menus, tabs and tooltips are common on good sites, and Google accepts many of them.

Does Google penalize hidden text?

Google lists hidden text as a spam violation. Deliberate abuse is the target, so the intent behind the text matters. Google also says its systems are good at spotting hidden text. John Mueller of Google said that "our systems are pretty good at recognizing hidden text, good at ignoring it", as Search Engine Roundtable reported. In practice, the hidden words often gain nothing, but deliberate abuse is still a spam violation.

If you think a page was hit by a penalty, read our guide to Google penalties and manual actions before you change anything.

Which hidden text techniques does Google penalize?

Google's spam policies give these examples of hidden text, from the Google spam policies page:

  • White text on a white background.
  • Text hidden behind an image.
  • CSS that positions text off-screen.
  • A font size or opacity set to 0.
  • A link hidden by linking only one small character, such as a hyphen in the middle of a paragraph.
Google spam policies page, section on hidden text and link abuse with its list of examples
Screenshot of developers.google.com

Google's example uses a size of 0, but a font too small to read is the same idea. Hidden text often comes with keyword stuffing. Google defines keyword stuffing as filling a page with keywords or numbers to manipulate rankings. Its examples include "lists of phone numbers without substantial added value" and "blocks of text that list cities and regions" the page wants to rank for. Read our keyword stuffing guide for the full rules, and check your own text with the keyword density calculator before you publish.

Which hidden content is allowed?

Google allows hidden content when it helps the reader and is not made to fool a search engine. Google's spam policies say that tooltips and text that is only accessible to screen readers do not violate its policies.

Tabs and accordions are allowed too. Google's mobile indexing guidance even suggests moving content into accordions or tabs to save space. The condition is that the content must match the desktop version, because Google indexes the mobile site. Google also says it won't load content that requires a user interaction, such as clicking, swiping or typing, to appear. So put the text in the page from the start, and let the tab or the click only show or hide it.

Other accepted hidden elements include:

  • Tooltips that show more text when a user points at an element.
  • Text meant only for screen readers, which helps visitors who use assistive technology.
  • A "read more" button that opens text already present in the page.

Alt text is a related case. It should describe the image for screen readers and search engines. Packing it with keywords turns it into keyword stuffing. See our alt text guide for the rules.

Google mobile indexing page advising to move content into accordions or tabs
Screenshot of developers.google.com

How is cloaking different from hidden text?

Cloaking is showing one version of a page to search engines and another to users. Google's spam policies define it as presenting "different content to users and search engines" with the intent to manipulate rankings and mislead users. Hidden text keeps one page but hides some of its words. Cloaking serves two different pages, depending on who asks.

For the methods Google accepts, see our guide to white hat SEO.

How can you check a page for hidden text?

You can check a page in four steps:

  1. Select all text with Ctrl+A (Cmd+A on a Mac). White text on a white background often shows up as a highlighted block.
  2. Turn off the CSS in your browser's developer tools and read the page again. Text that appears only with styles, or that sits off-screen, will show up.
  3. Inspect the elements that hide text, such as those with display none, a font size of 0, or an opacity of 0. Then ask whether a reader would ever see that text.
  4. Open the Google Search Console URL Inspection tool. Compare the HTML and the screenshot Google has of the page with what a visitor sees.

Common hidden text mistakes

Many hidden text problems are not planned. They come from themes, templates and copied code. Check your site for these four mistakes.

Keyword lists in footers or dropdown menus

What it is: a long block of city names or service keywords placed in a footer or a menu that few readers open. How to spot it: the block reads like a list, not a sentence, and it appears on every page. How to fix it: keep the links a reader needs, remove the rest, and write any list as a useful sentence.

A theme or page builder hiding text by mistake

What it is: a template sets a text block to white on white, or hides a block that should be visible. How to spot it: select-all shows a highlighted block with no words, or the Search Console screenshot shows an empty area. How to fix it: remove the hiding style, or make sure the text is visible or sits in a tab that a reader can open.

Alt text packed with keywords

What it is: image descriptions that list keywords, such as "cheap shoes best shoes buy shoes online". How to spot it: the alt text is longer than the text around the image and does not describe the picture. How to fix it: write one plain sentence about what the image shows. The free alt text checker finds images without a proper alt attribute.

Content that loads only after a click

What it is: a tab or read-more block whose text is added to the page only after a visitor clicks, swipes or types. How to spot it: the text is missing from the page source and appears only after an action. How to fix it: put the text in the page from the start, and let the click only show or hide it.

Why does hidden text matter for SEO and GEO?

Hidden text matters because it breaks the link between a page and what a reader gets from it. Search engines expect the page a visitor sees to match what they index. AI answers depend on trust too. A page that shows one thing to machines and another to readers is a weak base for being cited, so read more about how AI citations work before you chase them.

Sorank writes and publishes the articles of a site, so the text on each page is text meant for readers. Before you publish, a free on-page SEO audit helps you review the page.

Conclusion

Hidden text is text that search engines read but visitors cannot see, and Google treats it as spam when it is made to manipulate rankings. The safe rule is simple. Show readers the words that count, use tabs and accordions only for content that is already on the page, and keep alt text honest.

Sources

Frequently asked questions

Does Google penalize hidden text?

Google lists hidden text as a spam violation when it is placed to manipulate search results. Google also says its systems are good at ignoring hidden text, so the hidden words often gain nothing. Deliberate abuse is still a violation.

Can I use tabs and accordions on my pages?

Yes. Google accepts content inside tabs and accordions, as long as it matches the desktop version and is in the page from the start. Text that only loads after a click, swipe or typing may not be seen by Google.

What is the difference between hidden text and cloaking?

Hidden text keeps one page but hides some of its words from visitors. Cloaking shows one page to search engines and a different page to users. Both break Google's spam policies when used to manipulate rankings.

Our Blog for Ambitious Company

Testimonials from ambitious founders

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.frGoogleE-commerce

0 to 5000 visits in 8 months

Thibault BMsorank.comGoogleSoftware

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.comGoogleLeisure and aviation

0 to 163 clicks in 6 months

Coworking Pariscoworking-paris.frGoogleOffice broker

x92 clicks in 7 months

Guide Zanzibarguidezanzibar.comGoogleTravel