# max-snippet

> max-snippet caps how many characters Google may show in a text snippet. Values 0 and -1, how it combines with nosnippet, its image and video siblings, and limits.

Canonical: https://scaplet.com/glossary/max-snippet

Glossary Glossary · On-page SEO

max-snippet caps how many characters Google may show in a text snippet. Values 0 and -1, how it combines with nosnippet, its image and video siblings, and limits.

3 min

read

2

sources

Oct 30, 2026

updated

Scaplet Editorial Team

author

In one line

max-snippet:[number] is a robots meta directive that limits the text snippet Google shows for a page to that many characters. 0 means no snippet, equivalent to nosnippet, and -1 lets Google choose the length. It does not affect image or video previews, and it is ignored if robots.txt blocks the page.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fmax-snippet%20(%22max-snippet%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fmax-snippet%20(%22max-snippet%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fmax-snippet%20(%22max-snippet%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fmax-snippet%20(%22max-snippet%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

`max-snippet:[number]`

Syntax

No snippet, like `nosnippet`

0

Google chooses the length

-1

Google chooses the length

Default

_01_At a glance

## The preview directives side by side

Google documents four directives that shape the preview, each limiting a different part. `max-snippet` controls text only, so a page can cap its text and still allow a large image.

Directive

### `max-snippet:[number]`

Controls

Text [snippet](/glossary/snippet) length in characters

Values

`0` none, `-1` no limit set by you, or a number

If unspecified

Google chooses the length

Directive

### `max-image-preview:[setting]`

Controls

Image preview size

Values

`none`, `standard`, `large`

If unspecified

Google may show a default-size preview

Directive

### `max-video-preview:[number]`

Controls

Video snippet length in seconds

Values

`0` a static image at most, `-1` no limit, or a number

If unspecified

Google decides the length

Directive

### `nosnippet`

Controls

Text snippets and video previews

Values

No value

If unspecified

Google may generate both

A value without a parseable number is ignored for `max-snippet` and `max-video-preview`. For the wider picture of how Google builds a snippet, see [snippet](/glossary/snippet).

_02_At a glance

## Anatomy of the tag

Part

### `max-snippet:160`

Behavior

Limits the text snippet to 160 characters

Part

### `max-image-preview:large`

Behavior

Allows a preview up to the viewport width

Part

### Comma-separated list

Behavior

Several rules in one `content` attribute

Part

### `X-Robots-Tag` header

Behavior

Google says any rule usable in a meta tag can also go in this header

Cap text at 160 characters, allow a large image

```
<meta name="robots" content="max-snippet:160, max-image-preview:large"> <!-- Same rules as an HTTP header, useful for PDFs --> X-Robots-Tag: max-snippet:160, max-image-preview:large
```

**Blocked pages ignore the rule**Google says these settings are only followed if crawlers can access the page. If [robots.txt](/glossary/robots-txt) disallows the URL, Google never sees the meta tag or header, so the directive does nothing. Pages whose rules must be followed can't be disallowed from crawling.

_03_Worth knowing

## Conflicts and what max-snippet does not limit

### Conflicts resolve to the stricter rule

Google's example: a page with both `max-snippet:50` and `nosnippet` gets `nosnippet`.

### It does not cap structured data

Google says `max-snippet` does not limit information supplied through [structured data](/glossary/structured-data) for [rich results](/glossary/rich-results). A recipe page stays eligible for the recipe carousel.

### One exception exists

The `article.description` value, and `description` for other creative works, can be limited with `max-snippet`.

### Permissions you grant elsewhere win

Google says the limit does not apply where a publisher has granted permission separately, such as through in-page structured data or a license agreement.

### Part of a page only

To keep specific sections out of snippets, Google points to the `data-nosnippet` attribute instead. See [data-nosnippet](/ai-search/data-nosnippet).

_04_How it works

## Check it in 2 minutes

See what the page sends

```
# Meta tag in the HTML curl -s https://example.com/page | grep -io '<meta[^>]*name="robots"[^>]*>' # Header version curl -sI https://example.com/page | grep -i 'x-robots-tag'
```

Set a limit if
- You need a hard cap on how much text is shown for licensing or business reasons
- You want the text capped but images still allowed
- You can confirm the page is crawlable so Google reads the rule

Leave it out if
- You have no reason to restrict text, since Google then chooses the length
- You only want to hide one section, where `data-nosnippet` fits better
- You expect it to change structured data or rich results, which it does not

1. 01

### Confirm the page is crawlable

Check robots.txt does not disallow the URL, or the directive is invisible to Google.
2. 02

### Look for conflicts

Search the page and its headers for `nosnippet` or `max-snippet:0` that would override a looser value.
3. 03

### Pick the value

Choose `-1` or leave it out to let Google decide, or a number to cap the text. Choose `0` only if you want no text snippet.

Sources · 2

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [Robots meta tag, data-nosnippet, and X-Robots-Tag specifications (Google Search Central)](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag) developers.google.com · checked 2026-11-01
2. 02 [Control your snippets in search results (Google Search Central)](https://developers.google.com/search/docs/appearance/snippet) developers.google.com · checked 2026-11-01

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ What does max-snippet:-1 mean?

Google documents `-1` as letting it choose the snippet length it considers most effective, with no limit set by you. Leaving the rule out has the same effect: Google chooses the length.

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

Google says `0` means no snippet, equivalent to `nosnippet`. Google also says `nosnippet` applies to [AI Overviews](/glossary/ai-overviews) and AI Mode as direct input, so see the [snippet](/glossary/snippet) page for how those controls relate.

## Keep learning

[All glossary](/glossary)

[Learn nosnippet On-page SEO](/glossary/nosnippet) [Related robots.txt Crawling](/glossary/robots-txt) [Read next Robots meta tag Crawling and indexing](/glossary/robots-meta-tag) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Marketing funnel](/glossary/marketing-funnel) [Marketing qualified lead (MQL)](/glossary/marketing-qualified-lead) [Measurement Protocol](/glossary/measurement-protocol)

More in On-page SEO
[External links](/glossary/external-links) [Favicon](/glossary/favicon) [Featured snippet](/glossary/featured-snippet) [Flesch Reading Ease](/glossary/flesch-reading-ease) [H1 tag](/glossary/h1-tag) [Heading tags](/glossary/heading-tags) [Image SEO](/glossary/image-seo) [Image sitemap](/glossary/image-sitemap) [Internal links](/glossary/internal-links) [Keyword density](/glossary/keyword-density) [Keyword stuffing](/glossary/keyword-stuffing) [Knowledge Panel](/glossary/knowledge-panel) [max-snippet](/glossary/max-snippet) [Mega menu](/glossary/mega-menu) [Meta description](/glossary/meta-description) [Meta keywords](/glossary/meta-keywords) [nosnippet](/glossary/nosnippet) [OG image (og:image)](/glossary/og-image) [On-page SEO](/glossary/on-page-seo) [Open Graph](/glossary/open-graph) [People Also Ask](/glossary/people-also-ask) [Rich results](/glossary/rich-results) [Search snippet](/glossary/snippet) [Semantic HTML](/glossary/semantic-html)

Terms on this page
[Search snippet](/glossary/snippet) [robots.txt](/glossary/robots-txt) [Structured data](/glossary/structured-data) [Rich results](/glossary/rich-results) [AI Overviews](/glossary/ai-overviews)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
