Nosnippet, Max-Snippet in 2027 and Data-Nosnippet Explained
technical referenceHi there, friend. Nosnippet, max-snippet and data-nosnippet are three ways to control how much of your page Google may show as a text preview in search results. This guide explains what each does, the exact values Google accepts, and the rules that make data-nosnippet fail quietly.
- three snippet controls
- exact values quoted
- conflict rules explained
// bar lengths are an illustration, not measured data. The values come from Google’s robots meta tag page.
What Snippet Controls Do
They limit how much text, image or video preview Google may show for your page. Nosnippet is the strictest, max-snippet sets a character cap, and data-nosnippet hides one part of a page.
A snippet is the short text under a result’s title in Google. It tells people what the page says before they click. Usually Google builds it from your page. These controls let you step in.
The first two are rules you put in a robots meta tag or an X-Robots-Tag header. The third is an HTML attribute on a single element. If robots tags are new to you, read the robots meta tag and X-Robots-Tag guide first. Like those rules, these only work if crawlers can access the page.
The Rules and Their Values
Four preview rules exist. Three take a value, and each has special numbers worth memorizing.
| Rule | What it does | Special values |
|---|---|---|
| nosnippet | No text snippet or video preview. A static image thumbnail may still appear | none needed |
| max-snippet:[n] | Caps the text snippet length in characters | 0 means no snippet, -1 lets Google choose |
| max-image-preview:[x] | Sets the largest image preview | none, standard, or large (up to viewport width) |
| max-video-preview:[n] | Caps video preview length in seconds | 0 allows a static image, -1 means no limit |
// source: Google Search Central, robots meta tag specifications. If a number can’t be parsed, Google ignores the max-snippet and max-video-preview rules.
Notice that max-snippet:0 does the same job as nosnippet. Google says so directly. A value of -1 is the opposite: it tells Google to choose the length. As a small observation from this very site, the page head of each SyncCrawl article currently shows max-snippet:-1, max-image-preview:large and max-video-preview:-1, which is the generous setting.
How Data-Nosnippet Works
Data-nosnippet is an attribute that keeps one block of text out of your snippet while the rest of the page stays eligible.
Say a page has a price table you’d rather not preview, or a paragraph that reads oddly out of context. You wrap that part in an element and add the attribute. Google lists strict rules for it:
- Three elements only. It applies to span, div and section elements. Other elements, such as custom tags, are not valid.
- It’s a boolean attribute. Any value is ignored, so data-nosnippet, data-nosnippet=”true” and data-nosnippet=”false” all behave the same.
- The HTML must be valid. Tags must be properly closed, or the rule may not work.
- Don’t toggle it with JavaScript. Google says not to add or remove the attribute on existing nodes. If you add elements dynamically, include it when the element is created.
- Structured data still works. Markup inside a data-nosnippet element is still usable.
Yes, “false” still hides the text. I think that is the most surprising rule on the page, so don’t try to switch it off by setting it to false. Remove the attribute from the HTML instead.
Which Control Should You Use?
Pick by what you want to protect. Most small sites need none of them.
Use nosnippet
For a page where any text excerpt is a problem. You also lose video previews.
Use max-snippet
For a cap, such as 120 characters. The number is characters, not words.
Use data-nosnippet
For a table, a quote or a paragraph that should stay out of previews.
// the pairing is my own suggestion. It follows the definitions on Google’s page, not a Google recommendation.
My opinion, flagged as one: for an ordinary business site, a rich snippet is free advertising. Limiting it can hide the very sentence that earns the click. So use these controls for a reason, such as licensed content or a page where a partial excerpt would mislead, not as a reflex.
When Rules Collide
The more restrictive rule applies. Google’s own example: if a page has max-snippet:50 and nosnippet, nosnippet wins.
Rules for specific crawlers also stack. When a page has a general nofollow tag and a Googlebot-specific noindex tag, Googlebot treats the page as noindex, nofollow. The same logic holds for snippet rules, so check every robots tag and header on the page, not only the one you added.
Video has its own side effects. Google’s video guide says you can cap previews with max-video-preview, and that the nosnippet rule opts a page out of key moments entirely. If you run a video site, see the video sitemap guide as well.
Mistakes People Make With Snippets
Most trouble is small and fixable.
Setting nosnippet by accident
Some plugin settings add it sitewide. Check the page head if your results have no description.
Using words, not characters
Max-snippet counts characters. Fifty means fifty characters, a short line.
Wrong element for data-nosnippet
A custom tag is not valid. Use a span, div or section.
Changing it with scripts
Adding or removing the attribute after load is unreliable. Put it in the HTML from the start.
How to Check It Worked
Check the code first, then wait for Google to recrawl.
- View the page source and confirm the robots meta tag or attribute is present.
- Confirm the HTML around data-nosnippet is valid and closed.
- Run a live test in the URL Inspection tool to see the page as Google fetches it.
- Search for the page after a recrawl and look at the snippet. Changes aren’t instant.
Snippet controls are one piece of technical SEO, and they sit next to your noindex tags. If you want a full check of every robots rule on your site, a cheap SEO service for small business can include it. I do it often.
Questions People Ask Me
What does nosnippet do?
It stops Google showing a text snippet or video preview for the page. Google says a static image thumbnail may still appear.
What does max-snippet:0 mean?
It means no snippet, which is the same as nosnippet. A value of -1 lets Google choose the length.
Does data-nosnippet=”false” show the text?
No. Google says it is a boolean attribute and any value is ignored, so data-nosnippet, “true” and “false” all behave the same.
Which elements can use data-nosnippet?
Only span, div and section elements. Other elements, including custom tags, are not valid.
What if nosnippet and max-snippet conflict?
The more restrictive rule applies. With max-snippet:50 and nosnippet together, nosnippet applies.
Send Me the URL. I’ll Check the Tags.
Odd snippets often trace back to one robots rule. A cheap SEO expert can find it fast. One WhatsApp message is enough.
Sources and Last Check
- Google Search Central: Robots meta tag, data-nosnippet and X-Robots-Tag specifications (rules, values, data-nosnippet, conflicts)
- Google Search Central: Video SEO best practices (max-video-preview, key moments)
// last checked 11 Nov 2026. The decision guide and my views on snippets are my own. The note about this site’s own robots tag comes from my page check on the same date.