# Google max-snippet: What the Robots Directive Controls

> Google's `max-snippet` robots rule sets the maximum number of characters Google may show in a text snippet. Use a number to set a limit, `0` to prevent a text snippet, or `-1` for no limit. Without the rule, Google chooses the snippet.

Search engine optimisation · Updated 2026-10-31 · [Marketing glossary](https://www.getlooploop.com/glossary)

**In short** It caps how much of your page's text Google may quote under your link, and in its AI answers.

## What it does

The rule goes in a robots meta tag in the HTML head, or in an `X-Robots-Tag` HTTP header for files such as PDFs. Google applies it to every kind of result: web search, Images, Discover, AI Overviews and AI Mode, and it also limits how much of the content may be used as direct input for AI Overviews and AI Mode. It limits length only: it does not choose which text Google shows, and it does not affect image or video previews.

## The three kinds of value

> <meta name="robots" content="max-snippet:150"> <!-- at most 150 characters --> <meta name="robots" content="max-snippet:0"> <!-- no text snippet; the same as nosnippet --> <meta name="robots" content="max-snippet:-1"> <!-- no limit; Google chooses the length -->

## Where the limit does not apply

The limit does not override permissions you give separately. Content supplied as in-page structured data, or covered by a license agreement with Google, can still be used for those purposes. When rules conflict, the more restrictive one wins: with both `max-snippet:50` and `nosnippet`, no snippet is shown. A value Google cannot parse is ignored.

## How to check it

Look for the rule in the page source or in the response headers, then use URL Inspection in Search Console to see the page as Google last crawled it. Changes apply after Google recrawls the page.

## Common mistakes

- Expecting the rule to choose the snippet text. It only caps the length.
- Setting a very low number on pages that need clicks: searchers see too little to decide.
- Using it to hide part of a page. `data-nosnippet` on that element does that.
- Confusing it with `max-image-preview` and `max-video-preview`, which control the other previews.

## Hide a part, not the page

To keep one passage out of snippets while the rest can be quoted, wrap it in an element with `data-nosnippet` instead of capping the whole page.

## Frequently asked questions

### What is max-snippet?

A robots rule that limits how many characters Google may show in a text snippet for a page. A number sets the limit, 0 shows no text snippet and -1 sets no limit.

### Does max-snippet apply to AI Overviews?

Yes. Google applies it to all its result types, including AI Overviews and AI Mode, and it also limits how much of the content may be used as direct input for them.

### Is max-snippet:0 the same as nosnippet?

Yes. Google documents `max-snippet:0` as equivalent to `nosnippet`.

### Does max-snippet control which text Google shows?

No. It caps the length. Google still chooses the text, and structured data you provide can still be used.

## Related terms

- [X-Robots-Tag](https://www.getlooploop.com/glossary/x-robots-tag)
- [Noindex](https://www.getlooploop.com/glossary/noindex)
- [Nofollow](https://www.getlooploop.com/glossary/nofollow)
- [Noarchive](https://www.getlooploop.com/glossary/noarchive)
- [Meta Robots Tag](https://www.getlooploop.com/glossary/meta-robots-tag)

## Sources

- [Google Search Central: Robots meta tag, data-nosnippet and X-Robots-Tag](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag)

Source: GetLoopLoop Glossary — https://www.getlooploop.com/glossary/max-snippet. CC BY 4.0: https://creativecommons.org/licenses/by/4.0/

---

Canonical page: https://www.getlooploop.com/glossary/max-snippet
This is the Markdown copy of that page for AI agents, made from the same content.
