How much of your page may Google show?
Choose what Google may show of one page in its results and in AI features: the text snippet, image and video previews, its images, a translation and an end date. You get the robots meta tag, the X-Robots-Tag header and data-nosnippet markup, ready to paste. Nothing leaves your browser.
Who the rules are for
Google reads two crawler names in the robots meta tag, googlebot and googlebot-news, and ignores any other name.
Text snippet
A whole number. 0 is the same as no snippet.
Image and video previews
More rules
The time is your browser's time zone, written as an offset from UTC. Without a time, only the date is written.
Part of a page (data-nosnippet)
Paste it inside the head of the page, in place of any robots tag for the same crawler.
What Google says these rules do
From Google's robots meta tag, data-nosnippet and X-Robots-Tag page. These rules are read only on pages crawlers may open: a page blocked in robots.txt never shows Google its tags.
What it does
- Writes the robots meta tag. One tag for the head of the page, named robots for every search engine, or googlebot or googlebot-news for Google alone. Rules are joined in one comma-separated list, as Google's page shows them.
- Writes the same rules as an X-Robots-Tag header. For PDFs, images and other files that have no head, or to set rules for many URLs from the server. You also get the line for Apache and for nginx, in the form Google's page uses.
- Marks part of a page with data-nosnippet. On a span, div or section, the three elements Google's page allows, so that text is not used in a snippet.
- Says what each rule does, from Google's page. Google's page says nosnippet and max-snippet apply to AI Overviews and AI Mode too, and limit how much of the page may be used as a direct input for them. It does not say that about the image and video rules, so this page does not either.
What it does not do
It does not look at a live page. To see the robots tags and headers a page sends today, use the noindex checker. To write the title, description, canonical and Open Graph tags as well, use the meta tags generator.
It does not decide which AI crawlers may read your site at all. That is set in robots.txt: use the AI robots.txt generator.
Google's page says these rules may not be treated the same by other search engines. AI services outside Google publish their own rules; this page covers Google only.
Google's page says these limits do not apply to structured data, except article.description and the description of other creative works, which max-snippet does limit. They also do not apply where you have given Google permission another way, such as a licence.
Questions
Does nosnippet keep my page out of AI Overviews?
Google's page says nosnippet applies to AI Overviews and AI Mode, and stops the content from being used as a direct input for them. It does not say more than that, so this tool does not promise more either. To keep a page out of Google's results altogether, use noindex.
What is the difference between nosnippet and data-nosnippet?
nosnippet covers the whole page. data-nosnippet covers only the text inside the element that carries it, such as a members' price or a disclaimer, and the rest of the page can still be used in a snippet. Google's page does not say whether data-nosnippet applies to AI features.
Should I use the meta tag or the header?
The meta tag for HTML pages you can edit. The header for PDFs, images and other files, or for one rule across many URLs. Google's page says any rule that works in the meta tag also works in the header.
What if two rules disagree?
Google's page says the more restrictive rule applies: with both max-snippet:50 and nosnippet, nosnippet wins. With one tag for robots and another for googlebot, Google adds up the restrictions of both.