Home » SEO » Search Snippet Control: What Search Engines Are Allowed to Show From Your Page
Search Snippet Control: What Search Engines Are Allowed to Show From Your Page
Most people think of the snippet as the grey text under a blue link. It's controllable, though, and a surprising number of sites have limited theirs without meaning to. A stray directive from an SEO plugin or a developer's copy-paste can shorten every listing on the site.
The directives that shape a snippet
| Directive | Effect |
|---|---|
| nosnippet | No text or video preview is shown |
| max-snippet:N | Text excerpt is limited to N characters |
| max-image-preview:large | Allows large image previews |
| max-video-preview:N | Limits video preview length in seconds |
| noimageindex | Images on the page won't be indexed |
| notranslate | Translation of the page is not offered |
| noarchive | A cached copy isn't offered, where supported |
| unavailable_after | Page drops out of results after a given date |
| data-nosnippet | An HTML attribute that hides one element from excerpts |
These can be set in a meta robots tag, such as <meta name="robots" content="max-snippet:160">, or in an X-Robots-Tag HTTP header.
Why you should audit them
A tight limit like max-snippet:0 acts like nosnippet. Pages lose their description, which reduces clicks. A missing max-image-preview value can also keep your listing from showing a large image. And as AI-style summaries and answer features grow, the same controls affect how much of your text may be used there.
Step 1: find where directives are set
There are three places to look:
- The page source. Search for
name="robots"andgooglebotmeta tags. - The HTTP headers. Run
curl -Iand read X-Robots-Tag. - Your CMS and plugins. SEO plugins often have global settings that apply to every page.
Check headers separately. Server config can add directives that never appear in the HTML, and that's where surprises usually hide.
Step 2: look for conflicts
If one page has several directives, search engines generally follow the most restrictive combination. A header saying nosnippet beats a meta tag saying max-snippet:200. Make a table of what each source says for a few key pages and check that they agree.
Step 3: decide what you want
For most business and content sites, the sensible default is permissive:
<meta name="robots" content="max-snippet:-1, max-image-preview:large, max-video-preview:-1">
A value of -1 means no limit. That lets search engines pick the best excerpt and image.
Be restrictive only on purpose. Paid content, member-only material and licensed text are reasonable cases for limits.
Step 4: write for the snippet you'd like
Directives allow a good snippet, but they don't write one. Lead each page with a clear sentence that says what the page covers. Keep your meta description honest and specific, around 140 to 160 characters. The guide on titles and meta descriptions goes deeper.
Step 5: test after changes
Use the URL Inspection tool to confirm the live page has the directives you expect. Search results update over time, not instantly.
Common mistakes
- Leaving nosnippet in place after a staging launch.
- Applying a restrictive header sitewide to protect a single section.
- Confusing noindex with nosnippet. Noindex removes the page from results altogether.
- Using data-nosnippet on the main answer paragraph, which removes the best content from the excerpt.
Check this once, set it deliberately, and you won't have to think about it again for a long while.
Frequently Asked Questions
Does the meta description control my snippet?
It's a suggestion. Search engines often write their own snippet from the page text when they think it fits the query better. A clear opening paragraph helps either way.
What does nosnippet do?
It stops search engines from showing any text excerpt or video preview of the page in results. Your title and URL can still appear.
How do I hide just one paragraph from snippets?
Wrap it in an element with the data-nosnippet attribute, for example <span data-nosnippet>. Supported by Google, it keeps that part out of the excerpt without blocking the whole page.