nosnippet
- Scope
- Whole page
- Effect
- No text snippet or video preview
The nosnippet rule stops Google showing a text snippet or video preview for a page. What it covers, how it differs from data-nosnippet and max-snippet, plus a check.
nosnippet is a robots rule that tells Google not to show a text snippet or video preview for a page in search results. A static image thumbnail can still appear if it improves the experience. To exclude only parts of a page, use the data-nosnippet attribute instead.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
nosnippet applies to text snippets and video previews in web search, Google Images, Discover, AI Overviews, and AI Mode. It also stops the page's content from being used as direct input for AI Overviews and AI Mode. Without a rule, Google may generate its own snippet and video preview.The same rule works as an HTTP response header, which is how you apply it to PDFs and other non-HTML files. See X-Robots-Tag. The page stays indexable: nosnippet doesn't remove it from results, it changes what the result shows.
<meta name="robots" content="nosnippet">nosnippetdata-nosnippetspan, div or sectionmax-snippet:[number]noindex<p>This sentence can appear in a snippet.</p>
<div data-nosnippet>Pricing details we don't want excerpted.</div> It works on span, div and section. Custom or other elements aren't valid for it.
Any value is ignored, so data-nosnippet="false" still excludes the content.
The HTML must be valid. An unclosed element can cause all following content to be excluded.
Google may extract content before or after rendering, so include the attribute when you first insert dynamic elements.
Structured data inside a data-nosnippet element remains usable for search results.
Swap in your own URL. The first command prints any robots meta tags, and the second prints the header form. Check both, because a rule can sit in either place. In Search Console, the URL Inspection tool shows the rendered page Google used.
U=https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag
curl -s $U | grep -o -i 'name="robots" content="[a-z:0-9-]*"' | sort -u
curl -sI $U | grep -i '^x-robots-tag' || echo 'no X-Robots-Tag header'1 questions people ask next, answered from the sources on this page.
Google's documentation says nosnippet stops text snippets and video previews in AI Overviews and AI Mode and stops the content being used as direct input for them. It doesn't deindex the page. Use noindex if you want the page out of results.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.