WebmasterID logoWebmasterID
Robots & crawl control

max-snippet and preview directives explained

max-snippet, max-image-preview, and max-video-preview are Google robots directives that cap how much of your content appears in result-page previews. This page explains the values each accepts, where to set them, and how they differ from blocking indexing.

Verified against primary sources

The three directives

Google supports three preview-limiting robots directives. max-snippet:[number] caps the number of characters Google may show as a text snippet; a value of 0 means no snippet, and -1 means no limit. max-image-preview:[setting] accepts none, standard, or large to bound image-preview size. max-video-preview:[number] caps video-preview seconds, with 0 meaning a static image only and -1 meaning no limit.

These are indexing directives, not crawl directives: the page is still crawled and indexed, but the preview shown is constrained.

Where to set them

Set these in a meta robots tag for an HTML page:

<meta name="robots" content="max-snippet:160, max-image-preview:large">

Or in the X-Robots-Tag HTTP header, which also works for non-HTML files:

X-Robots-Tag: max-snippet:160, max-image-preview:large

You can target a specific crawler by replacing robots with the crawler's token (for example googlebot). Because these are Google directives, do not assume other search engines interpret them identically — check each engine's documentation.

How it appears in analytics and logs

These directives do not appear in server logs; they are instructions Google reads from your meta robots tag or X-Robots-Tag header. Their effect shows up as shorter or larger previews in search results, not as changed crawl behavior.

Diagnostic use case

Limit how much text, image, or video preview Google shows for your pages — for example capping snippet length on paywalled or sensitive content — without removing the page from the index.

What WebmasterID can help detect

WebmasterID focuses on crawl and bot activity rather than rendering these directives, but understanding them helps you separate indexing-policy questions from the crawler-traffic questions WebmasterID answers.

Common mistakes

Privacy and accuracy notes

Preview directives are publishing-policy instructions about your own content. They involve no visitor data and are not access control.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.