Control snippet and preview length in Google Search results using robots meta directives

domain: developers.google.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Add nosnippet to the robots meta tag or X-Robots-Tag header to suppress text snippets/previews entirely for a page
  2. Use max-snippet:[number] to cap the snippet length in characters (0 disables snippets, -1 allows unlimited)
  3. Set max-image-preview:none|standard|large to control the largest image preview size shown
  4. Set max-video-preview:[seconds] to cap animated video preview duration (0, a specific second count, or -1 for unlimited)
  5. Wrap specific on-page text in a data-nosnippet HTML element to exclude just that text from snippets while allowing the rest of the page

Known gotchas

Related routes

Configure snippet and preview control directives to manage how content is quoted in search results
robots-directives · 5 steps · unrated
Configure per-engine crawl-delay directives in robots.txt, since Bing and Yandex honor it but Googlebot ignores it entirely
developers.google.com · 5 steps · unrated
Distinguish between robots.txt Disallow and HTML noindex directives, and configure robots.txt user-agent entries to control AI training crawlers separately from search crawlers
developers.google.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans