data-nosnippet: definition and how it works
99Visibility Research · Updated October 21, 2026 · 4 min read
Short answer
data-nosnippet is an HTML attribute that tells search engines not to show a marked section of a page in snippets or AI summaries, while the page stays indexed. Google and Bing both document it. It is the only sub-page control of its kind. It can only remove content from display. No matching attribute makes a section more likely to be quoted.
Key takeaways
- data-nosnippet hides a marked section from snippets and AI summaries, but the page and that section stay indexed and eligible for ranking, according to Bing.
- It is a suppression tool only: no attribute or markup makes a section more likely to appear in an AI answer.
- Accidental use is the real risk, usually when a template applies it to a block that holds pricing or product facts.
- Check where it sits in your rendered HTML before assuming AI engines can quote your key facts.
Definition
data-nosnippet is an attribute you add to an HTML element to keep that element's text out of search snippets and AI-generated summaries. The rest of the page displays normally.
It is the section-level version of the page-wide nosnippet directive. It sits alongside max-snippet, which caps snippet length rather than excluding a block.
This entry is a tight definition. For depth on how the controls behave across engines, read the guide to nosnippet and data-nosnippet in AI answers.
How it works
You place the attribute on the element that wraps the text you want hidden:
<p>Plans start at $49 a month.</p>
<div data-nosnippet>Text that should not appear in snippets.</div>
Google's robots meta tag specification documents data-nosnippet with the other snippet controls and lists which elements accept it. Bing added support on October 15, 2025. Bing states that content marked this way "is still indexed normally, but it will be excluded from snippets and AI summaries," and that it remains "available for ranking." The digest of Bing's announcement covers the details.
So the attribute governs display, not indexing. An engine still crawls and stores the text. It just won't show it.
Why it matters for AI visibility
Google says a page must be indexed and eligible to show with a snippet to appear as a supporting link in AI Overviews or AI Mode. Snippet controls, data-nosnippet included, are the documented on-page levers for limiting what those features display. As of October 2026, Google and Bing are the engines that document this attribute.
That makes it useful when you want a block kept out of summaries, such as legal boilerplate or a consent notice.
It also makes it a quiet failure point. A developer may add the attribute to a shared wrapper to hide a cookie banner. If that wrapper also holds your pricing or product description, those facts drop out of AI summaries on every page using the template. Nothing in a dashboard flags it.
The next move is simple: search your rendered HTML for data-nosnippet and confirm each instance is intentional. The snippet controls site audit walks through doing this across a whole site.
Common misconceptions
- "It removes the section from the index." It does not. Bing says the content is indexed normally and still counts for ranking. Use noindex if you need a page out of the index. The noindex vs nosnippet vs data-nosnippet comparison sets out the differences.
- "Hiding text will hurt my rankings." Bing states the tagged content stays available for ranking. See whether hiding text from AI summaries hurts rankings.
- "There must be an opposite attribute to get a section quoted." There isn't. No markup has credible evidence of making content more likely to be used in an AI answer. The controls that hold up only remove blocks.
- "It stops every AI system." It is documented by Google and Bing. Other engines do not document honoring it, so treat its effect elsewhere as unconfirmed.
Frequently asked questions
Does data-nosnippet keep content out of Google AI Overviews?
Google documents data-nosnippet among its snippet controls, and those controls are the on-page levers Google names for limiting what its AI features display. Google also requires snippet eligibility for a page to appear as a supporting link in AI Overviews or AI Mode. The marked section stays indexed. It just should not be shown as a quoted snippet or summary text.
Can I use data-nosnippet on a whole page?
You can wrap large blocks, but the attribute is designed for sections. If you want nothing on the page shown as a snippet, the page-level nosnippet robots directive is the cleaner, documented choice. If you want the page out of search entirely, use noindex. Pick the narrowest control that matches what you actually want hidden, so you don't suppress useful facts by accident.
Will data-nosnippet stop ChatGPT or Perplexity from using my text?
Neither OpenAI nor Perplexity documents honoring data-nosnippet, so you cannot rely on it there. Their crawling is governed by per-bot robots.txt rules, such as OAI-SearchBot for ChatGPT search and PerplexityBot for Perplexity's index. If you need content kept from those systems, check their crawler documentation rather than assuming a Google or Bing attribute carries over.
How do I find accidental data-nosnippet tags?
Fetch the raw HTML of your key pages and search for the attribute, then check the rendered version too, since scripts or templates can inject it. Note which content each instance wraps. Any block holding prices, product names or definitions deserves a second look. Repeat the check after template or theme changes, because that is when accidental suppression usually appears.
Sources
This page is AI-assisted. It was written from a verified evidence base and checked against our editorial policy. Engine behaviour changes often; facts are as of October 21, 2026.