Nosnippet, max-snippet, and data-nosnippet explained
Google can quote any part of your page in a snippet or AI Overview, unless you say otherwise. Here is how nosnippet, max-snippet, and data-nosnippet work.
Every page that ranks in Google is fair game for a snippet, and now for an AI Overview. Most sites want that. Some don't, or only want part of the page used. Google has three controls for this, and most teams have never touched any of them: nosnippet, max-snippet, and data-nosnippet. They decide whether Google can quote your text at all, how much of it, and which parts.
What each directive actually does
All three are robots meta directives, set either in a meta robots tag in the page head or in an X-Robots-Tag HTTP header. They control display, not indexing. A page can still rank with any of these in place. What changes is whether Google can show your words as a preview.
- nosnippet: blocks Google from showing any text or video snippet for the page in search results. The page can still show a title and URL.
- max-snippet:[number]: caps how many characters Google can use in a snippet. Use 0 to match nosnippet's effect, or a specific number to allow a short preview but stop Google from lifting a full paragraph.
- data-nosnippet: an HTML attribute, not a meta tag. Add it to a span, div, or section to mark just that block as ineligible for snippets, while the rest of the page stays quotable.
The first two are page-level and go in the head or the response header. The third is element-level and lives in the body, wrapped around the exact text you want to protect.
Why this matters for AI Overviews
Google has said publicly that AI Overviews respect the same snippet controls as regular search results. If nosnippet or data-nosnippet blocks a passage from a normal snippet, it is also off limits for Google to quote or summarize in an AI Overview. That makes these directives one of the few concrete levers a site has over how Google's own AI answers use its content, separate from robots.txt, which only controls crawling.
This is a meaningful distinction. Blocking a crawler in robots.txt stops the page from being read at all, which also costs you ranking and any chance of citation. Nosnippet and data-nosnippet let Google read and index everything, rank the page normally, and still leave specific sentences out of any quoted answer. That is a scalpel where robots.txt is a wall.
Nosnippet stops Google from quoting you. It does not stop Google from ranking you.
When to use each one
Most pages should not use any of these. A snippet or an AI Overview citation is free visibility, and for most content it drives clicks rather than replacing them. Reach for these directives when a specific piece of text causes a real problem if it's lifted out of context.
- Pricing or offer text that changes often and looks wrong or stale when cached in a snippet.
- Legal, medical, or financial disclaimers that lose their meaning without the surrounding context.
- Paywalled or gated content where you want the page indexed and discoverable but not readable in full through a preview.
- Answer text you've deliberately built for a different, higher-value page, where you don't want a thinner duplicate page to get quoted instead.
For the second and third cases, data-nosnippet is almost always the better tool. Wrap the disclaimer or the gated paragraph, leave the rest of the page free to be quoted. Full-page nosnippet is a blunt move, and it can quietly cut off a source of clicks you didn't mean to lose, so treat it as a last resort rather than a default.
Limits and mistakes worth knowing
These directives are Google-specific in how reliably they're honored. Bing and other engines have historically had thinner support for data-nosnippet, and unofficial tags like noai or noimageai that some sites add have no confirmed enforcement from anyone. If your real goal is stopping ChatGPT, Perplexity, or another AI engine's own crawler from reading a page at all, that's a robots.txt and crawler user-agent decision, not a snippet directive. The two problems look similar but need different fixes.
A common mistake is applying max-snippet:0 sitewide through a template, usually copied from a boilerplate SEO plugin setting, without realizing it kills every snippet and AI Overview citation for the whole site. Check your meta robots output on a handful of live pages after any theme, CMS, or SEO plugin change. It's an easy setting to break by accident and an easy one to miss, since the page still ranks and looks fine at a glance.
Another mistake is expecting data-nosnippet to hide content from users. It doesn't. The text still renders normally on the page for anyone who visits. It only removes that specific text from Google's pool of quotable material.
Audit your key pages for these directives before you assume Google is choosing not to quote you. Check the meta robots tag, the X-Robots-Tag header, and any data-nosnippet spans your CMS or theme might add automatically. If a page that should be earning AI Overview citations never shows up in one, a stray max-snippet:0 from a template is worth ruling out before you rewrite a word of the content.