Free SEO audit for new clients — claim yours
Home/Blog/AI Search/nosnippet, max-snippet and data-nosnippet: Contr…
AI Search

nosnippet, max-snippet and data-nosnippet: Controlling How AI Overviews Use Your Content

nosnippet, max-snippet and data-nosnippet: Controlling How AI Overviews Use Your Content
Table of contents
  1. Key Takeaways
  2. The documented preview controls
    1. How conflicting rules are resolved
  3. The visibility cost of each control
  4. Safe implementation examples
    1. Exclude one block of text with data-nosnippet
    2. Cap snippet length
    3. Apply nosnippet to a PDF via HTTP header
  5. A step-by-step rollout process
  6. Common mistakes
  7. Related Guides
  8. Frequently Asked Questions
    1. Does nosnippet stop my page appearing in AI Overviews?
    2. Will nosnippet hurt my rankings?
    3. Which elements support data-nosnippet?
    4. What is the difference between these controls and the Search Console AI setting?
    5. Do snippet controls stop Gemini from training on my content?
  9. Conclusion
  10. References

If you want some say over how Google's AI features use your pages, the most precise tools you have are not new at all. The nosnippet, max-snippet and data-nosnippet rules have controlled search snippets for years, and Google's documentation now states plainly that they also govern how content is used as a direct input for AI Overviews and AI Mode.

That makes them powerful, and risky. Applied carelessly, they can strip the descriptive text from your classic search listings, make your pages ineligible as AI citations, and reduce clicks in ways that are hard to diagnose later. Applied surgically, they can keep a pricing table, a members-only excerpt or a legal disclaimer out of AI answers while the rest of the page performs normally.

This guide explains each documented control, how it applies to AI features in October 2026, what it costs you in visibility, and how to implement it safely with tested code examples. We also explain how these page-level rules relate to the site-level AI setting Google added to Search Console in 2026.

Key Takeaways

  • Google documents that nosnippet applies to all forms of search results, including AI Overviews and AI Mode, and prevents content being used as a direct input for them.
  • max-snippet:[number] limits how much text can be shown and, per Google, how much can be used as a direct input for AI Overviews and AI Mode.
  • data-nosnippet hides specific parts of a page and works only on span, div and section elements.
  • To be shown as a supporting link in AI features, a page must be indexed and eligible to be shown with a snippet, so heavy restrictions reduce AI visibility.
  • Since 2026 a separate site-level Search Console setting lets you opt out of AI Overviews, AI Mode and AI Overviews in Discover; it is a different tool from page-level preview rules.

The documented preview controls

Google's robots meta tag specification defines the rules below. You can set them in a <meta name="robots"> tag, in a crawler-specific tag such as <meta name="googlebot">, or in an HTTP header via the X-Robots-Tag, which is the only option for PDFs and other non-HTML files.

ControlWhere it goesWhat it does in classic resultsDocumented effect on AI Overviews / AI Mode
nosnippetRobots meta tag or X-Robots-TagNo text snippet or video previewContent not used as a direct input; Google lists AI Overviews and AI Mode among affected surfaces
max-snippet:[number]Robots meta tag or X-Robots-TagSnippet capped at the set number of charactersLimits how much content may be used as a direct input
data-nosnippetHTML attribute on span, div, sectionMarked text excluded from snippetsMarked text excluded as a snippet source (Google lists it among AI preview controls)
max-image-previewRobots meta tag or X-Robots-TagControls image preview size (none, standard, large)Not described as an AI text control
noindexRobots meta tag or X-Robots-TagPage removed from resultsPage cannot appear anywhere in Search, including AI features

“Do not show a text snippet or video preview in the search results for this page.”

— Google Search Central, Robots meta tag specifications

Google's AI features and your website page lists exactly these tools (nosnippet, data-nosnippet, max-snippet and noindex) as the way to limit what Search shows from your pages. It also notes that changes only take effect after Google recrawls the page, which can take days to months.

How conflicting rules are resolved

Pages often end up with more than one rule, for example a CMS default plus a plugin setting. Google's specification is clear about what happens:

“In the case of conflicting robots rules, the more restrictive rule applies.”

— Google Search Central, Robots meta tag specifications

So a page carrying both max-snippet:50 and nosnippet is treated as nosnippet. Audit templates for stray rules before assuming your intended limit is in force.

The visibility cost of each control

Every restriction has a price. Google states that to appear as a supporting link in AI Overviews or AI Mode, a page must be indexed and eligible to be shown in Search with a snippet. Remove the snippet and you remove that eligibility. Shorten it and you give Google less material to cite. If you are already losing traffic to AI answers, weigh these costs carefully before adding more restrictions.

ApproachProtection levelVisibility costGood fit for
No restrictionsNoneNoneMost business, service and ecommerce pages
data-nosnippet on selected blocksTargetedLow: the rest of the page stays eligiblePrices that change daily, legal small print, gated excerpts
max-snippet with a moderate valuePartialMedium: shorter listings, less citable textPublishers wanting to limit reuse while keeping visibility
nosnippet page-wideHighHigh: no snippet and no AI citation eligibilityPremium content where reuse outweighs search traffic
Search Console AI opt-out (site-wide)High, AI features onlyNo traffic or impressions from generative AI Search featuresSites with a clear policy of not participating in AI Search
noindexTotalPage disappears from SearchThin, private or duplicate pages, not AI control

Note that these controls apply to Google Search. They do not stop Gemini model training or grounding in Gemini Apps; that is the job of the Google-Extended robots.txt token, explained in our Google-Extended guide.

Safe implementation examples

Exclude one block of text with data-nosnippet

<p>Our standard service includes a full site audit.</p>
<div data-nosnippet>
  <p>Promotional rate valid until Friday for new customers only.</p>
</div>

Because Google supports the attribute only on span, div and section, wrap the text in one of those elements rather than adding it to a p or table directly. Make sure the HTML is valid and closed properly, or more text than intended may be affected.

Cap snippet length

<meta name="robots" content="max-snippet:160">

A value of 0 behaves like nosnippet, while -1 means no limit. Pick a number deliberately and document why.

Apply nosnippet to a PDF via HTTP header

X-Robots-Tag: nosnippet

Rules specified without a user agent are valid for all crawlers. To target only Google, use X-Robots-Tag: googlebot: nosnippet.

A step-by-step rollout process

  1. Define the goal. Write down exactly what you want to keep out of AI answers and why: a price, an excerpt, a full article.
  2. Choose the narrowest tool. Prefer data-nosnippet on a block over a page-wide rule, and a page-wide rule over a site-wide opt-out.
  3. Benchmark first. Export clicks, impressions and CTR for affected URLs from Search Console, including the newer generative AI reporting if your property has it.
  4. Implement on a test template. Roll out to a small set of URLs before a whole section.
  5. Confirm Googlebot sees it. Use the URL Inspection tool, as Google recommends, to check the rendered HTML or response headers contain the rule.
  6. Request recrawling. Ask Google to recrawl key URLs, then allow time; Google notes recrawling can take days to months.
  7. Measure for 4 to 8 weeks. Compare against your benchmark and decide whether to expand, adjust or roll back.

Common mistakes

  • Using nosnippet to "fix" AI Overviews traffic loss. It removes your eligibility as a cited source, which usually makes the traffic problem worse.
  • Placing data-nosnippet on unsupported elements. Only span, div and section are documented.
  • Hiding the answer you want to rank for. If the best passage on the page is excluded, Google will cite someone else. Read our guide to answer-first writing to structure citable passages.
  • Forgetting non-HTML files. PDFs need the X-Robots-Tag header; a meta tag cannot be added to them.
  • Confusing controls. noindex is not an AI control; it removes the page from Search entirely. See our noindex guide.
  • Not checking plugins. SEO plugins and CDN rules can inject conflicting robots values; the most restrictive wins.

For publishers specifically, these decisions sit inside a wider content strategy, covered in AI search for publishers.

Frequently Asked Questions

Does nosnippet stop my page appearing in AI Overviews?

Google documents that nosnippet applies to AI Overviews and AI Mode and prevents the content being used as a direct input. Because a page must be eligible for a snippet to appear as a supporting link, nosnippet effectively removes that eligibility.

Will nosnippet hurt my rankings?

It does not remove the page from Search, but listings without a snippet are less informative and usually attract fewer clicks, and the page loses eligibility as an AI citation.

Which elements support data-nosnippet?

Google supports the data-nosnippet attribute on span, div and section elements.

What is the difference between these controls and the Search Console AI setting?

Preview controls work per page or per block of text and also affect classic snippets. The 2026 Search Console setting works at site level and covers AI Overviews, AI Mode and AI Overviews in Discover; Google says it is not a ranking signal for other results.

Do snippet controls stop Gemini from training on my content?

No. Gemini training and grounding in Gemini Apps are governed by the Google-Extended robots.txt token, not by snippet rules.

Conclusion

Snippet controls give you real, documented influence over how AI Overviews and AI Mode use your content, but every restriction reduces your chances of being cited. Use the narrowest control that meets your goal, test it on a small set of pages and measure the result. If you want help reviewing robots rules, templates and AI visibility together, our on-page optimization service covers it. Request a quote and tell us what you want to protect.

References

  1. Robots meta tag, data-nosnippet and X-Robots-Tag specifications - Google Search Central
  2. AI features and your website - Google Search Central
  3. New opportunities, control and insights for website owners - Google (June 2026, updated August 2026)
  4. Google's common crawlers (Google-Extended) - Google Search Central
Rohit Choudhary
Written byRohit ChoudharyCo-Founder, My SEO Experts

Rohit Choudhary is the co-founder of My SEO Experts and has more than 14 years of hands-on experience in SEO, paid advertising and digital marketing. Since starting out in 2011 he has helped hundreds of businesses grow through practical, data-driven search strategies, and he also serves as a consulting Digital Marketing Director for several US-based companies.

Keep reading

Related articles

Apps in ChatGPT: Should Your Brand Build One?
AI Search

Apps in ChatGPT: Should Your Brand Build One?

What apps in ChatGPT are, who has launched them, the submission rules and costs, and a step-by-step framework for deciding if your brand should build one.

Ads in ChatGPT: What Advertisers Need to Know
AI Search

Ads in ChatGPT: What Advertisers Need to Know

What OpenAI has officially documented about ads in ChatGPT, from placement rules and Ads Manager to measurement, and how ads relate to organic AI visibility.

Ready to grow your business online?

Get a free, no-obligation proposal tailored to your goals and budget.

CallFree Quote