How to Control Search Preview Length with Meta Robots Directives

How can you control what appears in a search preview?
Here is how to control search preview length with meta robots directives: add a robots meta tag to your page's HTML . Use max-snippet:120 to allow up to 120 characters of snippet text, max-image-preview:standard to limit image preview size, or max-video-preview:10 to limit video previews to 10 seconds. Use nosnippet if you want no text or video snippet. These rules control how a page appears, not whether Google indexes it.
I'm Clayton Johnson, founder of SmallBizSEO, where I focus on technical SEO and content strategy for small businesses. That work shapes how I explain how to control search preview length with meta robots directives without hiding useful pages from search.

How do you control search preview length with meta robots directives?
Set the relevant preview directive on a page to limit its text, image, or video preview. These directives control presentation, not whether the page can be indexed.
Which rules control each search preview?
Use max-snippet for text, max-image-preview for images, and max-video-preview for video. Use nosnippet to suppress text and video previews altogether.
| Directive | Controls | Accepted values | Effect |
|---|---|---|---|
max-snippet |
Text snippet | A number of characters; 0; -1 |
Sets a maximum text length. 0 means no snippet; -1 lets Google choose. |
max-image-preview |
Image preview | none, standard, large |
Sets the largest image preview allowed. |
max-video-preview |
Video preview | A number of seconds; 0; -1 |
Limits video preview duration. 0 allows at most a static image; -1 means no limit. |
nosnippet |
Text and video preview | Directive only | Stops text and video snippets. A static image may still appear. |

For example, max-snippet:20 limits a text snippet to 20 characters. It does not set a word count or affect image and video previews. These rules set an upper limit; they do not guarantee that Google will show a preview of that size.
Preview directives do not remove a page from the index. For that, use noindex. See Google’s robots meta tag specifications and our guide to the meta robots tag.
What is the difference between nosnippet and max-snippet:0, and which rule wins?
For Google, nosnippet and max-snippet:0 both prevent text snippets from appearing. They also prevent video previews, though a static image may still be shown. nosnippet can also affect meta descriptions and rich-result displays.
If a page has both max-snippet:50 and nosnippet, Google applies the more restrictive rule: nosnippet. Conflicting rules can come from multiple meta tags, an HTTP header, or a plugin and template combination. Google also combines rules targeted at different crawlers, applying the relevant restrictions to each crawler.
If you want to limit a snippet rather than remove it, use a positive max-snippet value without nosnippet. For help shaping the text that may appear, see our advice on crafting a search result snippet.
How do you add preview directives with a meta tag or X-Robots-Tag?
For an HTML page, put the robots meta tag in the document’s . You can combine preview rules in one comma-separated content value:
You can also use a crawler-specific name, such as googlebot, when you intend a rule for that crawler. Keep the page crawlable so Google can fetch and read its directives.
For PDFs and other non-HTML files, use an X-Robots-Tag HTTP response header. For example, a server can return X-Robots-Tag: max-snippet:120. Apache can set the header in server configuration or an .htaccess file; NGINX can set it with an add_header rule. Use a rule scoped to the intended files, and check the response served publicly. Our X-Robots-Tag guide covers the header’s role.
Do not block a page in robots.txt if you need Google to read its meta tag or header. A crawl block can prevent Google from seeing the directive. Google and Bing support preview controls, but behavior can vary across search engines; Bing describes its implementation in its snippet-control announcement.
How do you control search preview length for selected page sections?
Use the data-nosnippet attribute to exclude specific text while leaving the rest of the page available for snippets. Google supports it on span, div, and section elements. For example: Text to exclude from snippets.
Treat the attribute as a switch: adding a value such as data-nosnippet="false" does not turn it off. Use valid HTML with properly closed tags. If JavaScript creates an element that should be excluded, include the attribute when creating the element rather than adding or removing it later.
data-nosnippet limits text shown in snippets; it does not make structured data inside the element unavailable. Robots preview limits generally do not control structured data, although max-snippet can limit description values such as article.description. To manage rich-result content, edit the structured data itself. See our checklists for data-nosnippet implementation, structured data, and rich results.

How should you choose preview limits and check that Google applies them?
Choose limits based on the page’s purpose, then check that Google can access the correct directive. There is no universal character target that works for every page.
How do preview directives affect AI Overviews, AI Mode, and search visibility?
Google applies nosnippet across its search result formats, including AI Overviews and AI Mode. max-snippet limits how much page content Google may use as direct input for those features. Separately granted permissions, such as a license or permission through structured data, may be treated differently.
These directives do not provide an AI-only opt-out: limiting snippets can also reduce what appears in standard results. Google may write a snippet from page text rather than use your meta description, and a directive does not guarantee that a particular description will appear. Learn how a meta description fits into search presentation and why zero-click searches matter when deciding how much information to reveal.
A shorter limit may reduce the amount of text shown and affect clicks. It can also limit eligibility for expanded displays such as featured snippets. These presentation controls do not directly change whether a page is indexed or guarantee a ranking change, but they can affect how searchers encounter the page.
Which preview settings fit each page type, and how can you verify them?
Start with the least restrictive setting that meets your goals. Many public pages use max-snippet:-1, max-image-preview:large, and max-video-preview:-1, allowing the search engine to choose a preview. Consider limits only when you have a specific reason.
- Blog posts: Allow a useful text excerpt so readers can understand the topic before clicking. Use
data-nosnippetfor a section that should not appear in search previews. - Product pages: Consider allowing large product images and enough text to convey key details. Check that the permitted preview does not expose information you intend to keep out of snippets.
- News articles: Review how much article text you want available in search features. A low text cap or
nosnippetcan reduce visibility as well as the preview.

To verify your settings:
- Inspect the rendered HTML and confirm the intended meta tag appears. Check for extra tags added by a CMS, template, or SEO plugin.
- Use Google Search Console’s URL Inspection tool to check the page Google can access and review its indexing status.
- For an HTTP header, run
curl -I https://your-page-urlin a terminal and check for theX-Robots-Tagresponse. Make sure any CDN or cache returns the intended header, too. - Confirm the URL is not blocked in
robots.txt, then allow time for Google to recrawl it. Check live search results afterward; snippet wording and display can vary.
If the directive is missing or the result does not change, check for conflicting page-level rules, headers, cached responses, or a crawl block. For a broader technical review of page-level directives, our SEO visibility audit can help identify implementation issues.