nosnippet, max-snippet and data-nosnippet: how they affect AI answers
nosnippet and max-snippet no longer only shape the text under a blue link. In Google they also decide whether AI Overviews and AI Mode can use your page. Here is what each rule does, what other engines say, and how to find limits you didn't mean to set.
The seoscore team 10 min read
On this page
- What snippet rules are: nosnippet, max-snippet, data-nosnippet and friends
- How Google applies snippet rules to AI Overviews and AI Mode
- Do ChatGPT, Bing Copilot and Perplexity respect nosnippet?
- Snippet rules vs robots.txt vs noindex vs Google-Extended
- Accidental snippet limits that cost you AI citations
- Examples to copy for each goal
- Should you ever use nosnippet on purpose?
- Check your pages with seoscore
- After the change: how to tell if AI answers quote you
- Next steps
nosnippet is a robots rule that tells search engines not to show a text snippet from a page. In Google it also stops the page's content from being used as a direct input for AI Overviews and AI Mode, and max-snippet caps how much text Google may use there. If you want AI answers to quote you, remove any nosnippet or max-snippet:0, and use data-nosnippet only around the specific text you want to keep out.
What snippet rules are: nosnippet, max-snippet, data-nosnippet and friends
A snippet is the text a search engine shows under your page's title. Snippet rules tell search engines how much of your page they may show, and in Google's case how much they may feed into AI answers. That makes them part of answer engine optimization (AEO): making pages that AI engines can read, trust and quote. Our guide to AEO covers the rest of that work.
| Rule | What it does | Values |
|---|---|---|
nosnippet |
No text snippet or video preview. In Google, also no direct input to AI Overviews or AI Mode | No value |
max-snippet:[n] |
Caps the text snippet at n characters | 0 is the same as nosnippet, -1 means no limit |
max-image-preview |
Largest image preview allowed | none, standard or large |
max-video-preview:[n] |
Longest video preview, in seconds | 0 for a still image only, -1 for no limit |
data-nosnippet |
Keeps one part of a page out of snippets | HTML attribute, no value |
noarchive |
Controlled Google's cached link | No longer used by Google; still matters on Bing |
Bing documents the same 0 and -1 values for max-snippet in its announcement of snippet controls.
You can set these rules in four places:
- The robots meta tag in the page's
<head>, read by every engine that supports it. - The googlebot meta tag, read by Google only. Google supports two user agent tokens here,
googlebotandgooglebot-news, and ignores other values. - The X-Robots-Tag HTTP header, the same rules sent by your server. It is the only option for PDFs and other files that aren't HTML.
- The data-nosnippet attribute on an element inside the page.
<!-- robots meta tag, in <head> -->
<meta name="robots" content="max-snippet:-1, max-image-preview:large">
<!-- Google-only version -->
<meta name="googlebot" content="max-snippet:-1">
<!-- one block kept out of snippets -->
<div data-nosnippet>...</div>
X-Robots-Tag: max-snippet:-1, max-image-preview:large
When rules conflict, Google applies the more restrictive one. Its robots meta tag documentation gives the example of a page with both max-snippet:50 and nosnippet: nosnippet applies.
How Google applies snippet rules to AI Overviews and AI Mode
Google's robots meta tag documentation says nosnippet "applies to all forms of search results (at Google: web search, Google Images, Discover, AI Overviews, AI Mode) and will also prevent the content from being used as a direct input for AI Overviews and AI Mode." max-snippet works the same way: it "will also limit how much of the content may be used as a direct input for AI Overviews and AI Mode." Google's page on AI features and your website points to the same controls: "use nosnippet, data-nosnippet, max-snippet, or noindex controls."
What that means for whether a page can be cited:
- nosnippet or max-snippet:0. The page can still be indexed and rank, but Google can't use its text as an input for an AI Overview or AI Mode answer.
- A short max-snippet. Google publishes no minimum length. But AI answers are built from passages, and a limit of 20 or 50 characters leaves little to work with. We treat a very short limit as making the page a weaker candidate, not as an outright block.
- data-nosnippet. The marked text stays out of snippets and AI Overviews. The rest of the page is still usable.
- No rule at all. Google picks the snippet length itself. Google also says there are no additional requirements or special optimisations needed to appear in AI Overviews or AI Mode, so removing a limit is about not getting in the way rather than earning a bonus.
Two exceptions are worth knowing. max-snippet doesn't apply to information supplied as structured data for rich results, and structured data inside a data-nosnippet element can still be used in search results. So wrapping a price in data-nosnippet won't hide the price in your Product markup.
Google also offers a site-wide control that sits apart from snippet rules: a generative AI setting in Search Console that includes or excludes a property's content from AI features. Google's list of ways to control what you share now includes it beside the robots meta tag, data-nosnippet and X-Robots-Tag, as PPC Land reported. It works on a whole property, so snippet rules remain the tool for single pages and single blocks. For the content side of being quoted, see how to get cited in Google AI Overviews.
Do ChatGPT, Bing Copilot and Perplexity respect nosnippet?
Bing and Copilot. Bing's Webmaster Guidelines say: "Use NOINDEX when a URL should NOT appear in Bing search, Copilot experiences, or grounding API results. DATA-NOSNIPPET and NOSNIPPET prevent Bing from displaying captions and may limit Copilot citation quality." So nosnippet on Bing doesn't remove you from Copilot, but it can weaken how you are cited.
Microsoft also has two older tags for its chat answers, announced in 2023 when Copilot was still called Bing Chat:
- NOCACHE: content may be included in chat answers, but Bing shows only the URL, snippet and title.
- NOARCHIVE: content is not included in chat answers or linked from them, and isn't used to train Microsoft's generative AI models.
That is why noarchive, which Google ignores, can still cost you on Bing. If a plugin added it years ago to hide Google's cached link, it may now be keeping you out of Copilot answers.
ChatGPT and Perplexity. OpenAI and Perplexity document their crawlers and how to allow or block them in robots.txt. We have not found a public statement from either that they honour nosnippet, max-snippet or data-nosnippet. Don't rely on snippet rules to control what they quote. For engines outside Google, the robots.txt rules for each bot matter far more: our article on allowing AI crawlers in robots.txt lists the bots and the lines to use.
Snippet rules vs robots.txt vs noindex vs Google-Extended
These controls get mixed up because they all sound like ways to stay out of AI. They do different jobs.
| Control | Set in | Stops crawling | Stops indexing | Stops the blue-link snippet | Keeps text out of AI Overviews and AI Mode | Controls Gemini training and grounding |
|---|---|---|---|---|---|---|
robots.txt Disallow for Googlebot |
robots.txt | Yes | Not always: the URL can be indexed without its content | Yes, Google has no text | Yes | No, use Google-Extended |
noindex |
Meta tag or header | No | Yes | Yes | Yes | No |
nosnippet or max-snippet:0 |
Meta tag or header | No | No | Yes | Yes | No |
max-snippet:[n] |
Meta tag or header | No | No | Shortens it | Limits how much is used | No |
data-nosnippet |
HTML attribute | No | No | For the marked text | For the marked text | No |
| Google-Extended | robots.txt | Not for Search | No | No | No | Yes |
| Search Console generative AI setting | Search Console | No | No | No | Yes, for the whole property | No |
Google-Extended covers Gemini training and grounding, not AI Overviews or AI Mode, as this summary of Google's AI controls explains. The common mix-ups:
- Blocking Google-Extended to stay out of AI Overviews. It doesn't. AI Overviews use what Googlebot crawls for Search.
- Using nosnippet to stop AI training. It doesn't. Training is controlled by robots.txt tokens such as Google-Extended and each AI company's own crawler.
- Combining robots.txt Disallow with noindex. If Google can't crawl the page, it never sees the noindex.
- Expecting nosnippet to hide a page. The page stays indexed and can rank, just with no text under the link.
Accidental snippet limits that cost you AI citations
Most pages with a snippet limit didn't choose one on purpose. These are the usual causes:
- SEO plugin settings. Most WordPress SEO plugins have an advanced robots or snippet setting, both site-wide and per post. A lowered snippet length or a ticked no-snippet box on one template can spread to hundreds of pages.
- A site-wide rule in the theme. nosnippet or max-snippet:0 added to the header for one page type and never removed.
- Headers from staging or the edge. An
X-Robots-Tag: noindex, nosnippetset on a staging server that came to production with the server config, or a header added by a CDN rule or security plugin. These never show in the page source. - data-nosnippet around a whole template. Someone wraps the main content area to hide one block. Google also requires valid HTML with every tag closed, and an unclosed tag swallows everything after it.
- A stricter googlebot tag. The robots tag says
max-snippet:-1, but a googlebot tag further down saysnosnippet. Google combines them and the more restrictive rule wins.
How to spot them
- View source. Open the page, press Ctrl+U (Cmd+Option+U on a Mac) and search for
robots,googlebot,nosnippet,max-snippetanddata-nosnippet. If your site adds meta tags with JavaScript, check the rendered page in your browser's developer tools as well. - curl. This shows headers the source doesn't:
curl -sI https://www.example.com/page/ | grep -i x-robots-tag
Run it on a few page types and on a PDF. No output means no X-Robots-Tag header.
- The URL Inspection tool. In Google Search Console, inspect the URL, run a live test and open the tested page. You can see the HTML and HTTP response Googlebot received, which catches rules that only appear for Google.
Examples to copy for each goal
Allow full quoting
This states there is no limit on text or video previews and allows large image previews. Google doesn't link max-image-preview:large to AI Overviews, but it allows large image previews wherever Google shows them.
<meta name="robots" content="max-snippet:-1, max-image-preview:large, max-video-preview:-1">
Apache (in .htaccess or the virtual host, with mod_headers enabled):
Header set X-Robots-Tag "max-snippet:-1, max-image-preview:large, max-video-preview:-1"
Nginx:
add_header X-Robots-Tag "max-snippet:-1, max-image-preview:large, max-video-preview:-1" always;
These don't override a stricter rule set elsewhere, so remove any old nosnippet first.
Limit quoting on paywalled or sensitive pages
A short limit lets search show a line of text while keeping most of the page out of snippets and AI inputs. Pick the number to suit; 160 is roughly one search snippet.
<meta name="robots" content="max-snippet:160">
Apache, in a .htaccess file inside the folder you want to limit:
<IfModule mod_headers.c>
Header set X-Robots-Tag "max-snippet:160"
</IfModule>
Nginx, for one section of the site:
location /members/ {
add_header X-Robots-Tag "max-snippet:160" always;
}
Hide one block with data-nosnippet
Use this for text you don't want quoted out of context, such as negotiated pricing, legal small print or user reviews. There is no header version: it only works in the HTML.
<p>Every plan includes onboarding and support.</p>
<div data-nosnippet>
<p>Enterprise prices are agreed per contract and may change.</p>
</div>
<p>Delivery takes <span data-nosnippet>3 to 5 working days, subject to stock</span>.</p>
Rules from Google's documentation:
- Use it only on
span,divandsectionelements. To hide a paragraph or list, wrap it in adiv. - It is a boolean attribute:
data-nosnippeton its own is enough. - The HTML must be valid with every tag closed, because Google may read the attribute before and after rendering.
- Structured data inside the block can still be used, so remove the matching values from your markup too if they must stay hidden.
- If the page also has nosnippet, nosnippet takes priority.
Should you ever use nosnippet on purpose?
Sometimes, but less often than it is used. The cost is clear: no text under your link, no direct input to AI Overviews and AI Mode, and on Bing possibly weaker Copilot citations. We know of no published study measuring traffic after adding or removing nosnippet, so weigh it on what you would give up.
It can make sense for:
- Publishers whose product is the content, such as paid articles or research, where a full summary in an AI answer replaces the reason to visit.
- Regulated content, such as financial promotions or medical dosage, where a partial quote out of context is a real risk. Here data-nosnippet on the risky block is usually better than nosnippet on the whole page.
For most businesses the answer is to allow full snippets. A service page, product page or guide wants to be quoted, because a citation is often the only link to you in an AI answer.
Check your pages with seoscore
Paste a URL into the free AEO and GEO checker. It checks the page's snippet rules alongside the other things that decide whether AI engines can quote it: AI crawler access in robots.txt, content that loads without JavaScript, llms.txt, entity markup, freshness, citations, direct answers, FAQ markup and answer blocks. That tells you in one pass whether an accidental max-snippet:0 is the problem or whether something else is blocking the page too.
To catch limits across the whole site, run an SEO audit. AEO is 15 of the 100 points in every audit, and each fix is ranked by the points it adds, so a template-wide nosnippet shows up near the top of the list. Every check and weight is published on the methodology page.
After the change: how to tell if AI answers quote you
Google only applies a new rule after it recrawls the page. For a handful of important pages, request indexing in the URL Inspection tool; for the rest, give it time.
Then check the results rather than guessing:
- Rank tracking checks your position in Google for the keywords you choose, weekly or daily, and records whether Google showed an AI Overview and cited your site. It is on Starter and up, with a free trial.
- AI mentions reports where Google AI Overviews and ChatGPT cite your site: how often, which pages, the questions people asked and the other sites cited beside you. Run it on demand or monthly, on Starter and up with a free trial.
Being quotable is the page side. Whether AI assistants name your brand in their answers is generative engine optimization (GEO), which depends on more than one page's tags. Our GEO guide explains how to measure and improve it.
Next steps
- Check the robots and googlebot meta tags on each page template with view source.
- Check X-Robots-Tag headers with curl, including on PDFs, and compare with the URL Inspection tool.
- Remove any nosnippet, max-snippet:0 or noarchive you didn't choose on purpose, including plugin and CDN settings.
- Keep data-nosnippet tight around the exact text you want hidden, with valid, closed HTML.
- Confirm Googlebot and the AI crawlers you want can reach the page in robots.txt.
- Re-check after Google recrawls, and watch whether AI Overviews start citing the page.
Questions people ask
Does nosnippet stop a page from ranking in Google?
No. nosnippet controls what Google shows and uses from the page, not whether it is indexed. The page can still appear in results, but with no text description under the title, which usually makes it less likely to be clicked.
Is max-snippet:-1 the same as having no snippet rule?
In effect, yes: without a rule Google chooses the snippet length itself, and -1 states plainly that there is no limit. Setting it explicitly is useful as documentation, but it won't override a stricter rule elsewhere, such as a nosnippet in a googlebot tag or an X-Robots-Tag header.
Does nosnippet stop my content being used to train AI models?
No. Snippet rules govern what search results and AI search features show. Training by Google's Gemini models is controlled with the Google-Extended token in robots.txt, and other companies' training crawlers are controlled with their own robots.txt user agents.
Can I put data-nosnippet on a paragraph or a table?
Google supports data-nosnippet only on span, div and section elements. To hide a paragraph, list or table, wrap it in a div with the attribute. Make sure the wrapper is closed properly, or the hidden area may run on to the end of the page.
Do snippet rules work on PDFs?
Yes, but only through the X-Robots-Tag HTTP header, because a PDF has no HTML head for a meta tag. Set the header in your server or CDN configuration for the file types or folders you want to control, then check it with curl.
Sources
- Announcing new options for webmasters to control their snippets at Bing blogs.bing.com
- Robots Meta Tags Specifications developers.google.com
- AI Features and Your Website developers.google.com
- Google lists 7 ways to keep content out of Search, AI opt-out included ppc.land
- bing.com/webmasters/help/webmaster-guidelines-30fba23a www.bing.com
- Announcing new options for webmasters to control usage of their content in Bing Chat blogs.bing.com
- How to Control Google's Use of Your Content in AI Answers - eSEOspace eseospace.com
- nosnippet patrickstox.com
seoscore
Will AI answer engines quote you?
Run the free AEO checks on any page and see what to fix first.
Check my AEO