max-snippet: definition and how it works
99Visibility Research · Updated October 21, 2026 · 4 min read
Short answer
max-snippet is a robots directive that sets the maximum number of characters a search engine may show as a text snippet from your page. You set it in a robots meta tag or an X-Robots-Tag header. A value of 0 means no text snippet at all. Google requires snippet eligibility for a page to appear as a supporting link in AI Overviews or AI Mode, so max-snippet:0 keeps that page out of those features.
Key takeaways
- max-snippet takes a number: the character limit for a text snippet, with 0 meaning none and -1 meaning no limit.
- Google's AI Overviews and AI Mode only show pages that are indexed and eligible for a snippet, so max-snippet:0 removes a page from those surfaces.
- max-snippet is a suppression control. Raising or removing it makes a page eligible again, but it does not make a page more likely to be cited.
- The most common real problem is a max-snippet:0 inherited from a template or CMS setting that nobody meant to apply.
Definition
max-snippet is a page-level instruction that caps snippet length. It tells a search engine how many characters of your text it may display when it shows your page.
It lives alongside other robots directives such as noindex and nosnippet. Google's robots meta tag specification documents it, and Google and Bing both treat these directives as the on-page controls for how content appears in search and AI answers.
The value is a number:
- A positive number (for example 50) caps the snippet at that many characters.
- 0 means no text snippet may be shown.
- -1 means no limit: the engine decides the length.
How it works
You set max-snippet in one of two places. In the HTML head:
<meta name="robots" content="max-snippet:50">
Or as an HTTP response header, which also works for non-HTML files such as PDFs:
X-Robots-Tag: max-snippet:0
You can combine it with other directives in one tag, separated by commas, for example content="max-snippet:160, max-image-preview:large". You can also target one crawler by replacing robots with that crawler's name, such as googlebot.
The crawler has to fetch the page to read the directive. If robots.txt blocks the crawler, it never sees the tag. That is why max-snippet is not a robots.txt rule: robots.txt controls fetching, while max-snippet controls display of a page the engine has already fetched.
Why it matters for AI visibility
Google states that to be shown as a supporting link in AI Overviews or AI Mode, a page "must be indexed and eligible to be shown in Google Search with a snippet." It adds that there are no additional technical requirements. So snippet eligibility is one of the few hard gates into Google's AI features, as of October 2026.
That makes max-snippet:0 a switch. Set it, and the page stays indexed but can't serve as a supporting link in those features. There is no robots.txt token for AI Overviews or AI Mode, so snippet directives and noindex are the page-level controls site owners actually hold.
What this means in practice:
- If you want a page out of AI answers while keeping it in search, max-snippet:0 or nosnippet does that. For a single block of text rather than a whole page, use data-nosnippet.
- If you want a page considered, check that it carries no max-snippet:0. This is part of index eligibility, and removing an accidental block is a fix you control.
- What you don't control: whether an eligible page gets retrieved or cited for a given question. Eligibility is not inclusion. Google says indexing and serving aren't guaranteed.
For a site-wide sweep of these tags, follow the snippet controls audit.
Common misconceptions
"A longer max-snippet gets you cited more"
No evidence supports this. Snippet controls are subtractive: they can make a page ineligible, and removing them restores eligibility. No markup or setting has been shown to make a page more likely to be chosen.
"max-snippet is the meta description length"
It isn't. The meta description is text you suggest. max-snippet limits how much text the engine may show, whatever the source.
"max-snippet:0 removes the page from Google"
It doesn't. The page can stay indexed and rank. Only snippet display, and with it AI feature eligibility, goes away. To remove a page from the index, use noindex. The trade-offs are laid out in noindex vs nosnippet vs data-nosnippet.
"It stops AI training"
It doesn't. Training use is governed by separate crawler tokens, such as Google-Extended for Gemini and GPTBot for OpenAI. Each setting is independent.
Frequently asked questions
What is the difference between max-snippet:0 and nosnippet?
Both stop a text snippet from appearing, so both remove a page from eligibility as a supporting link in Google's AI Overviews and AI Mode. nosnippet is a flat on or off switch. max-snippet takes a number, so you can also use it to allow a short snippet instead of none. Pick nosnippet when intent is clearly no snippet, since it is easier to read in an audit.
Does a nonzero max-snippet value affect AI Overviews?
Google lists max-snippet among the controls that govern how your content is displayed, including in its AI features. A positive number keeps the page snippet-eligible while capping display length. The evidence we rely on does not measure how a specific cap changes whether or how a page is cited, so treat nonzero values as a display limit, not a visibility setting.
How do I check whether my pages have max-snippet set?
View the page source and look for a robots meta tag in the head, then check the HTTP response headers for X-Robots-Tag. Look for per-crawler tags too, such as one named googlebot. CMS plugins and templates often add these site-wide, so check several page types, not just the homepage.
Does max-snippet work in robots.txt?
No. robots.txt only allows or disallows fetching. max-snippet must be in a robots meta tag or an X-Robots-Tag header. A crawler must be allowed to fetch the page to read it, so blocking a crawler in robots.txt also means it never sees your snippet directive.
Will removing max-snippet:0 get my page into AI answers?
It makes the page eligible again, which is necessary but not enough. Whether an engine retrieves and cites the page for a given question depends on factors you don't control, and Google says serving isn't guaranteed. Removing an accidental block is still worth doing, because an ineligible page has no chance at all.
Sources
This page is AI-assisted. It was written from a verified evidence base and checked against our editorial policy. Engine behaviour changes often; facts are as of October 21, 2026.