# nosnippet and max-snippet: Control Content in AI Overviews

> How nosnippet, max-snippet and data-nosnippet control what Google shows in AI Overviews and AI Mode, with code, trade-offs and when to use them.

Source: https://ranklocaltoday.com/blog/nosnippet-max-snippet-ai-overviews  
Last updated: 2026-11-16

GUIDE

# nosnippet, max-snippet and data-nosnippet: Controlling Your Content in AI Overviews

Google gives site owners a few preview controls that limit how much of a page appears in search results, and Google says they also apply to AI Overviews and AI Mode. Here is exactly what each one does, the code to use it and why most local businesses should use them sparingly, if at all.

By **RankLocalToday** Updated Nov 16, 2026 11 min read

**3** snippet controls

**span, div, section** support data-nosnippet

**0** = same as nosnippet

**Search-wide** effect, not AI-only

**Short answer:** Google offers three preview controls that affect AI Overviews and AI Mode: `nosnippet` (no text snippet from the page at all), `max-snippet:[number]` (caps snippet length and, Google says, how much content can be used as direct input for AI Overviews and AI Mode) and the `data-nosnippet` attribute (hides one part of a page). They apply to Search as a whole, not just to AI features. `noindex` removes the page from Search entirely. Use them surgically: most local businesses want to be quoted, not hidden.

## What Google says, word for word

Google's [AI features and your website](https://developers.google.com/search/docs/appearance/ai-features) page lists `nosnippet`, `data-nosnippet`, `max-snippet` and `noindex` as the ways to limit what is shown from your pages in Search, including AI Overviews and AI Mode. Its [robots meta tag documentation](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag) adds the detail:

- **nosnippet**: do not show a text snippet or video preview for the page. Google says this applies to all forms of search results, listing web search, Google Images, Discover, AI Overviews and AI Mode. A static image thumbnail may still appear.
- **max-snippet**: the maximum number of characters for a text snippet. Google says it will also limit how much of the content may be used as a direct input for AI Overviews and AI Mode. `0` is equivalent to nosnippet; `-1` lets Google decide.
- **data-nosnippet**: an HTML attribute that excludes part of a page from snippets. Google supports it on `span`, `div` and `section` elements.

In its [May 2025 guidance](https://developers.google.com/search/blog/2025/05/succeeding-in-ai-search), Google also warned that more restrictive permissions will limit how your content is featured in its AI experiences. That is the trade-off in one sentence.

## The controls compared

| Control | Scope | Effect on regular results | Effect on AI Overviews and AI Mode |
| --- | --- | --- | --- |
| `noindex` | Whole page | Page removed from Search | Not eligible |
| `nosnippet` | Whole page | Result shows with no text description | Text not shown in these features |
| `max-snippet:N` | Whole page | Snippet capped at N characters | Limits how much content is used as direct input |
| `data-nosnippet` | Marked section | That text never appears in snippets | That text is excluded from snippet use |
| Google-Extended (robots.txt) | Whole site or paths | None | None. It covers training and grounding in some other Google AI products |

## How to implement each control

### nosnippet on a whole page

Add a robots meta tag in the page's `head`:

```
<meta name="robots" content="nosnippet">
```

To target only Google, use `name="googlebot"` instead of `robots`. For PDFs and other non-HTML files, send the same rule as an HTTP header:

```
X-Robots-Tag: nosnippet
```

### max-snippet on a whole page

```
<meta name="robots" content="max-snippet:50">
```

This caps text snippets at 50 characters. Many sites already have `max-snippet:-1` in their templates, which means "no limit, Google decides". Check your template before adding a new tag; conflicting values are confusing, and Google applies the more restrictive rule when rules conflict.

### data-nosnippet on part of a page

```
<p>Standard drain cleaning is available seven days a week.</p>
<div data-nosnippet>
<p>Today's promotional rate applies to bookings made before 5 p.m.</p>
</div>
```

Only `span`, `div` and `section` are supported. Keep the HTML valid (properly closed tags), or Google may not interpret the attribute reliably.

### Checking it works

Use URL Inspection in Search Console to confirm Google sees the tag or attribute in the rendered HTML, then request reindexing if needed. Google notes that changes take effect only after recrawling and reprocessing.

## Why most local businesses should not restrict snippets

Publishers worried about AI summaries replacing visits have good reasons to experiment with these controls. A local service business is in a different position. Its content exists to win calls and bookings, and being quoted in an AI answer is often the first step:

- **Your regular snippet suffers too.** nosnippet removes the description under your blue link in normal results. A bare title gets fewer clicks. See [meta descriptions and CTR](https://ranklocaltoday.com/blog/meta-description-ctr-optimization).
- **Restricted content is less likely to be used.** If your page cannot be quoted, an AI Overview may cite a competitor or a directory instead.
- **Local results draw on your profile anyway.** Business details in local results come largely from your Google Business Profile, which these page-level controls do not touch.
- **Clicks from AI features may be worth more.** Google says people who click from pages with AI Overviews tend to spend more time on the site. Whether that holds for your site is something to check in analytics, but blocking removes the chance.

## When the controls do make sense

There are sensible, narrow uses:

- **Time-sensitive offers or prices** that change often, where an out-of-date quote in an AI answer would mislead customers. Wrap just that block in `data-nosnippet`.
- **Legal disclaimers and terms** you do not want shown as if they were the answer to a question.
- **Personal details**, such as a staff member's direct contact or home-based address you must display for compliance.
- **Licensed content** you may display but not have reproduced, such as a manufacturer's copyrighted table.
- **Thin or private pages** that should not be in Search at all, such as thank-you pages and internal tools. Use `noindex` instead.

## Google-Extended is a different switch

Google-Extended is a robots.txt product token. Google says it controls whether content crawled from your site can be used for training and grounding in some of its other AI systems, such as Gemini apps and Vertex AI. It is not a separate crawler and it does not affect Search, so blocking it does not remove your pages from AI Overviews or AI Mode, and it does not affect rankings.

```
User-agent: Google-Extended
Disallow: /
```

Whether to block it is a business decision about AI training, covered in our guide on [whether to block AI crawlers](https://ranklocaltoday.com/blog/should-you-block-ai-crawlers). For most local businesses, being known accurately by Gemini is more valuable than the protection, but it is your call.

## What about ChatGPT, Perplexity and Copilot?

Google's snippet controls are Google features. Other providers have their own rules:

- **OpenAI** says its [crawler documentation](https://developers.openai.com/api/docs/bots) settings are independent: OAI-SearchBot decides whether you can appear in ChatGPT search results, GPTBot covers training, and ChatGPT-User makes user-initiated visits where robots.txt rules may not apply.
- **Bing and Copilot** respect robots meta tags such as `nosnippet` for Bing results; check [our Copilot guide](https://ranklocaltoday.com/blog/bing-copilot-optimization) for the current details.
- **Other assistants** publish their own crawler names and robots.txt rules.

There is no single tag that works for every AI system, which is another reason to decide carefully before restricting anything.

## A decision checklist

1. **Is the page meant to win customers?** If yes, do not add nosnippet or a small max-snippet.
2. **Is there one block that would mislead if quoted out of context?** Use data-nosnippet on that block only.
3. **Should the page be in Search at all?** If no, use noindex, not nosnippet.
4. **Are you worried about AI training?** That is Google-Extended and other providers' training crawlers, not snippet controls.
5. **Did you check your template?** Make sure an old `nosnippet` or tiny `max-snippet` is not set site-wide by mistake. We see this on themes and SEO plugin presets.

## Measuring the effect if you do use them

If you restrict snippets on any revenue page, measure before and after:

- Clicks and click-through rate for that page in Search Console's Performance report.
- Whether the page still appears as a source in AI Overviews for your test queries; see [AI Overviews data in Search Console](https://ranklocaltoday.com/blog/search-console-ai-overviews-ai-mode-data).
- Calls and form fills from organic search in GA4.

Give it four to eight weeks, and roll back if clicks fall without a clear benefit.

## Worked scenarios for local businesses

### Scenario 1: a daily-changing price

A towing company shows a weekend surcharge that changes based on demand. The owner worries that an AI answer will quote last week's figure. The right move is not nosnippet on the whole page, which would remove the description from the company's main service result. Instead, wrap only the surcharge sentence in `data-nosnippet` and keep the rest of the page, including the base service description and coverage area, quotable. Better still, state the surcharge as a range with "call for today's rate", which stays accurate whenever it is quoted.

### Scenario 2: a licensed manufacturer table

An HVAC dealer is allowed to display a manufacturer's efficiency comparison table on its website under its dealer agreement, but not to have it reproduced elsewhere. Wrapping that table's container in `data-nosnippet` keeps it out of snippets while leaving the dealer's own advice around it eligible. Check the agreement itself for what is required.

### Scenario 3: a thank-you page appearing in results

A booking confirmation page with a discount code is showing up in search. nosnippet would hide the description but leave the page findable. The correct control is `noindex`, and removing the page from the sitemap.

### Scenario 4: an inherited site-wide nosnippet

A new owner of a cleaning business notices that none of the site's results show descriptions. View source reveals `<meta name="robots" content="nosnippet">` in the template, set by a previous developer. Removing it, then requesting reindexing for the main pages, restores normal snippets and makes the content eligible for AI features again.

## How to audit your site for snippet controls

1. View the source of your home page and two service pages and search for `nosnippet`, `max-snippet` and `noindex`.
2. Search your codebase or theme settings for `data-nosnippet` to see where it is used.
3. Check HTTP headers for `X-Robots-Tag` with your browser's network panel or a header checker, especially for PDFs.
4. Check your SEO plugin's global settings, which sometimes set snippet limits for all pages or post types.
5. Use URL Inspection in Search Console to confirm what Google sees after rendering.
6. Document any intentional use, so the next developer does not remove it or copy it everywhere.

## Snippet controls versus robots.txt: a common confusion

Many site owners try to keep a page out of AI features by blocking it in robots.txt. That does something different:

- **robots.txt blocks crawling, not indexing.** Google may still index a blocked URL if other pages link to it, showing it without a description because it could not read the content. Google's documentation says to use `noindex`, not robots.txt, to keep a page out of Search.
- **A blocked page cannot be read, so its noindex cannot be seen.** If you add noindex to a page, do not also block it in robots.txt, or Google will never see the noindex.
- **Snippet controls need crawling.** nosnippet, max-snippet and data-nosnippet only work if Googlebot can fetch the page and see them.

Use robots.txt to manage crawling (for example to keep crawlers out of endless filter URLs), noindex to keep a page out of Search, and snippet controls to shape what an indexed page can show. Google's [AI features page](https://developers.google.com/search/docs/appearance/ai-features) describes robots.txt directives for Googlebot as the control for managing access.

## What these controls cannot do

- They cannot change what Google shows from your Google Business Profile, reviews or Maps data.
- They cannot stop Google summarizing what other websites say about you.
- They do not apply to non-Google assistants unless those providers choose to honor the same tags.
- They are not retroactive until Google recrawls and reprocesses the page.

## The bottom line

Google's snippet controls are blunt instruments that affect Search as a whole, not a hidden "no AI" switch. nosnippet and max-snippet trade away your regular snippet to limit AI use; data-nosnippet lets you hide just the parts that should never be quoted. For a local business that wants calls, the right setting on almost every page is the default: let Google quote you, and make sure what it quotes is accurate, specific and up to date.

## Frequently asked questions

### Can I opt out of Google AI Overviews?

Not as a separate switch. Google's controls work across Search: nosnippet, data-nosnippet and max-snippet limit what can be shown from your page, including in AI Overviews and AI Mode, and noindex removes the page from Search entirely. There is no setting that keeps a full regular snippet while blocking only AI Overviews.

### What does max-snippet do for AI Overviews?

max-snippet sets the maximum number of characters Google may show as a text snippet. Google's documentation says it also limits how much of the content may be used as a direct input for AI Overviews and AI Mode. A value of 0 means no snippet, the same as nosnippet; -1 lets Google choose the length.

### How do I hide part of a page from snippets and AI Overviews?

Wrap the text in a span, div or section element with the data-nosnippet attribute. Google will not use that text in snippets. Other elements are not valid for this attribute, and the HTML must be well formed for it to work reliably.

### Does blocking Google-Extended remove me from AI Overviews?

No. Google-Extended is a robots.txt product token that controls whether content crawled by Google can be used for training and grounding in some other Google AI systems, such as Gemini apps. AI Overviews and AI Mode are part of Search and use Googlebot, so they are managed by the Search controls.

### Will nosnippet hurt my rankings?

Google does not describe nosnippet as a ranking demotion, but a result with no description is less informative and usually less clicked. For most local business pages, the loss of a normal snippet costs more than any benefit from limiting AI use.

### When should a local business use these controls?

Mainly for content you must not have quoted out of context: internal pricing that changes daily, legal disclaimers, sensitive staff details or text licensed from a third party. Use data-nosnippet on that section rather than nosnippet on the whole page.

More in this topic: [AI search optimization, all 66 guides →](https://ranklocaltoday.com/blog/ai-search-optimization-guides)

### Check how AI Overviews treat your pages

Run the free AI Visibility Checker, or book a free audit and we will review whether any of your pages need snippet controls at all.

[Book Free Audit →](https://calendly.com/deepak-ranklocalnow/30min)

## Turn local visibility into qualified demand

Start with an accurate baseline and a prioritized action plan.

[Build Your Free Local SEO Plan →](https://ranklocaltoday.com/local-seo-plan)
