The classic case of hidden text is a block of keywords in white on a white background: the crawler reads every word, the visitor sees an empty space. Any content placed on a page for search engines to read, while people aren't meant to notice it, counts, whether it's hidden by color, size, position or an image. It's one of the oldest black hat SEO tricks, a close relative of keyword stuffing.
What Google counts as hidden text
Google's spam policies call it hidden text or link abuse: placing content on a page solely to manipulate search engines, in a way that isn't easily visible to people. Google gives these examples:
- White text on a white background
- Text hidden behind an image
- Text moved off-screen with CSS
- A font size or opacity of 0
- A link hidden on one small character, such as a hyphen in the middle of a paragraph
Google finds spam with automated systems and, where needed, human review. A site that breaks the policies can rank lower or drop out of results, and a reviewer can apply a manual action. Google spam policies
Hidden text isn't the same as cloaking. Cloaking sends search engines different content from what people get. Hidden text sends everyone the same HTML and hides part of it on screen.
Hidden content that's fine
Modern pages show and hide content all the time, and Google says these patterns don't break its policies:
- Accordions and tabs that open and close extra content
- Slideshows and sliders that cycle through images or text
- Tooltips that show more when someone interacts with an element
- Text only screen readers announce, added to help people who use them
The difference is who the content is for. If a visitor can reach it, by clicking, tapping or with assistive technology, and it's there to help them, it's normal design. If no visitor is meant to see it and it exists only for search engines, it's hidden text. So a display: none menu that opens on a tap is fine; a display: none block of city names is not.
How hidden text gets onto honest sites
Not every case is deliberate. Look out for these:
- Hacked pages. Google notes that attackers who break into a site may inject hidden links or text with CSS or HTML. You may never notice them in the browser.
- Leftovers. Old sections switched off with CSS instead of deleted, still full of keywords.
- Themes and plugins. Code you didn't write can add links or text you don't see.
- Pasted text. Copying from another tool can carry white or tiny font styles.
How to check a page
Google's own steps for the "Hidden text and/or keyword stuffing" manual action work for any page:
- Select everything. Press Ctrl+A (Command+A on a Mac). Text in the same color as the background often shows up when highlighted.
- Compare the code with the screen. View the page source or the browser's element inspector and look for text and links you can't see on the page.
- Search the CSS. Look for
display: none,visibility: hidden,font-size: 0,opacity: 0and large negative positions, and check what each one hides. - See what Google sees. In Search Console, the URL Inspection tool's live test shows a screenshot of the rendered page and its code.
- Check the Manual actions report. If Google has acted, it will be listed there.
How to fix it
Delete hidden text that serves no visitor, or restyle it so people and search engines can find it equally. On a hacked site, clean up the hack and close the hole that let it in, or the text comes back.
If you got a manual action, fix every affected page, then select Request Review in the Manual actions report and describe what you changed. Google says most reviews take several days or weeks, and it emails you when the review is done. Search Console Help