Skip to content
Now in ChatGPT & Claude via MCP See how it works →
Technical SEOAdvancedUpdated 12 Nov 2026

nosnippet,data-nosnippet and max-snippet:Controlling What Google Shows

Every control Google offers over what it shows from your pages, in classic results and in AI Overviews and AI Mode, with the exact syntax.

AkshayCo-founder & CTO, Hyperlocal SEO AI · 8 min read

Technical SEO

Key takeaways

  • Google says AI Overviews and AI Mode have no extra technical requirements: a page must be indexed and eligible to show a snippet.
  • Google says noindex, nosnippet and max-snippet apply to AI Overviews and AI Mode as well as classic results.
  • nosnippet hides the whole text preview, max-snippet limits its length, and data-nosnippet hides one part of a page from snippets.
  • Search Console now has a site-wide Search generative AI control for AI Overviews and AI Mode.
  • Google says you do not need special AI files, markup or schema to appear in AI features.

Most SEO work is about getting Google to show more of your site. Sometimes you need the opposite: keep a price out of the snippet, stop a disclaimer being quoted without context, or keep a members-only section out of AI answers. Google gives you several controls, each at a different level. Using the wrong one is a common and expensive mistake.

First, the rule for AI features

Google’s documentation on AI features is clear: to appear in AI Overviews or AI Mode, a page must be indexed and eligible to show a snippet. There are no extra technical requirements, and Google says you do not need new machine-readable files, AI text files or special schema.org markup.

That has a useful consequence. The controls that limit snippets in classic results also limit what AI features can use from your page.

The controls, from widest to narrowest

<meta name="robots" content="noindex">

The page is not shown in Google Search at all, in classic results or AI features. Google must be able to crawl the page to see this tag, so do not also block it in robots.txt.

2. nosnippet: no text preview

<meta name="robots" content="nosnippet">

The page can still rank, but Google shows no text snippet or video preview, and the content cannot be used as a direct input for AI Overviews and AI Mode. Expect lower click-through in classic results.

3. max-snippet: limit the preview length

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

Limits the text preview to a number of characters, in classic results and in AI Overviews and AI Mode, including how much of the page they can use as input. max-snippet:0 behaves like nosnippet. max-snippet:-1 means no limit, which is what most sites that want to be quoted should use.

4. data-nosnippet: hide one part of the page

<p>Our clinic is open seven days a week.</p>
<div data-nosnippet>Prices shown are for the Noida branch only.</div>

Google keeps the marked text out of search result snippets, while the rest of the page can still be shown. Google’s documentation does not say whether it also applies to AI features, so do not rely on it alone for anything that must never be quoted. It works on span, div and section elements. This is the precise tool for prices, disclaimers or anything that would mislead if quoted out of context.

5. X-Robots-Tag: the same rules for files

X-Robots-Tag: noindex, nosnippet

An HTTP header with the same values as the robots meta tag. Use it for PDFs, images and other files that have no HTML head.

6. Search generative AI control in Search Console

Google’s "Control what you share" page, updated on 21 October 2026, lists a site-wide setting in Search Console that controls whether your site is included in AI Overviews and AI Mode. Because it applies to the whole site, it is a blunt tool. Most businesses gain more from being cited than they lose, so think carefully before switching it off.

Google-Extended in robots.txt controls whether your content is used to train Gemini models and to ground answers in Gemini Apps and Vertex AI. Google says it does not affect inclusion or ranking in Google Search. It is a different question from the controls above. See our guide to Google’s shared AI training control.

Which control should you use?

  • Remove a page from Search: noindex.
  • Keep a page ranking but stop it being quoted: nosnippet, accepting lower clicks.
  • Hide one sentence or block: data-nosnippet.
  • Files such as PDFs: X-Robots-Tag.
  • Leave the whole site out of AI Overviews and AI Mode: the Search Console setting.
  • Stop AI model training: Google-Extended (and, from 2027, the shared training token).

Common mistakes

  1. Blocking a page in robots.txt and adding noindex. Google cannot crawl the page, so it never sees the noindex, and the URL can stay indexed.
  2. Using nosnippet sitewide to "protect content". It removes your snippets everywhere and usually costs more traffic than it saves.
  3. Expecting instant results. Google has to recrawl the page. Google says this can take days to months; use URL Inspection in Search Console to request a recrawl.
  4. Checking the source but not the rendered page. If JavaScript adds or removes the tag, check the rendered HTML in URL Inspection.

How we set it on this site

This site sends max-snippet:-1 and max-image-preview:large on every indexable page, so Google can show full snippets and large images in classic results and AI features. That is the right default for any business that wants to be found and quoted.

Hyperlocal SEO AI checks every page’s robots tags and headers in its site audit, so an accidental noindex or nosnippet is caught early.

Sources

  1. AI features and your website, Google Search Central
  2. Robots meta tag, data-nosnippet and X-Robots-Tag specifications, Google Search Central
  3. Control what you share with Google Search, Google Search Central
  4. Google’s common crawlers (Google-Extended), Google Search Central

Track all of this automatically

Hyperlocal SEO AI monitors every listing and page, every week.

Start free trial

Written by Akshay

Manages Google Business Profiles and local SEO for hospital and clinic chains across India.

Want more guides like this in your Google results?

Add us as a preferred source on Google

FAQ

FAQs

Does nosnippet remove my page from AI Overviews?+

Yes. Google says the content of a page with nosnippet cannot be used as a direct input for AI Overviews and AI Mode, and no text preview is shown in classic results.

What is the difference between nosnippet and data-nosnippet?+

nosnippet applies to the whole page. data-nosnippet is an HTML attribute that hides only the marked span, div or section from search result snippets.

Do I need llms.txt or special schema to appear in AI Overviews?+

No. Google says there are no extra requirements beyond being indexed and eligible for a snippet, and no special files or markup are needed.

Does blocking Google-Extended remove me from Google Search?+

No. Google says Google-Extended does not affect inclusion or ranking in Google Search.

Working with 50+ enterprises

  • Medanta Hospitals
  • Apollo Hospitals
  • Paras Health
  • PSRI Hospital
  • Mankind Pharma
  • BSV
  • HCAH
  • QI Spine Clinic
  • Ferty9 Fertility
  • Risaa IVF
  • Dermaheal
  • Dr. Manu Gautam
  • Kornu Driving School
  • Speedy Tyres Sweden
  • Artham Derma & Orthopedic Centre
  • Renovaaura
  • Extell Systems