nosnippet vs data-nosnippet: Google AI search controls
Compare nosnippet, data-nosnippet and max-snippet for Google Search and AI features, with HTML examples, a decision table and a practical review worksheet.
nosnippet vs data-nosnippet is a choice between a page-wide text-preview restriction and an exclusion for selected text on a page. Use the scope that matches the publishing decision; use max-snippet when the decision concerns preview length. These are Google Search content controls, not a method for selecting an AI placement or increasing clicks.
This guide is for editors and SEO teams reviewing what a public page makes available to Google Search, including its AI features. Start with the publishing goal, record the current configuration, and test the affected template before changing a production rule. The broader answer engine optimization guide explains source readiness; this checklist covers a specific technical decision within that work.
There is a real reason to separate the decisions. In Tracemetry's Search Console Web report for October 15–November 11, 2026, the query “does featured snippet optimization overlap with aeo?” returned 22 impressions, zero clicks and average position 5.6 for our AEO versus featured snippets article. That is one disclosed query row, not the page total, a fixed rank, or a diagnosis of why people did not click. It does not establish that a snippet control is wrong. Check the page's intended presentation before treating a content-control change as a traffic experiment.
What is the difference between nosnippet and data-nosnippet?
nosnippet applies to the page's text preview; data-nosnippet applies to a marked portion of its HTML. A publisher should choose between them by identifying the exact text and result behavior it wants to restrict. Google's introduction to preview controls explains this page-versus-element distinction and the character-based max-snippet option.
| Publishing goal | Control to evaluate | Scope to document |
|---|---|---|
| Keep a public article available, but exclude a particular text block from snippets | data-nosnippet | The specific span, div or section |
| Restrict the page's text snippets | nosnippet | The affected page or template |
| Set a maximum text-preview length | max-snippet:N | The chosen character limit and business reason |
| Remove a page from Google's index | noindex | An indexing decision, not just a preview preference |
| Keep information private | Access protection | A security decision requiring more than preview markup |
The last two rows are separate branches of the review. Google documents noindex as an indexing control that the crawler must be able to read. Its robots.txt guidance explains that crawl restrictions do not secure private information. Do not select a preview setting when the actual requirement is access protection.
How do these controls affect Google's AI search features?
Google's AI-feature guidance identifies preview and indexing controls as ways to limit information in Search. A supporting link in AI Overviews or AI Mode requires an indexed page eligible for a Search snippet; meeting the requirements does not guarantee inclusion.
The current robots specification says nosnippet also prevents the page's content being used as a direct input to AI Overviews and AI Mode. max-snippet limits that input, subject to separately permitted uses such as structured data or licensing. A zero limit is equivalent to nosnippet; it is not a small positive preview.
Treat those effects as part of the owner's publishing decision. A team seeking supporting links should investigate an unexpected restriction; a publisher deliberately limiting use should verify that restriction. Neither team should copy another site's settings without understanding its goal. Google's documentation also does not establish how a different assistant, crawler or licensing arrangement handles the same page.
What does the HTML look like?
The following examples are fictional implementation patterns, not changes applied to Tracemetry. Have the person responsible for your CMS or framework put the selected rule in the appropriate output. Do not paste page-wide metadata into an article body and assume it configures the document.
Exclude a promotional block, retain the article text
Imagine a publisher whose reusable newsletter promotion is appearing where it wants a preview of the editorial answer. Keep the useful answer outside the excluded block:
<article>
<h1>How to compare warehouse service levels</h1>
<p>Compare coverage, cutoffs, exclusions and escalation paths.</p>
<div data-nosnippet>
<p>Example promotion: join this publisher's newsletter.</p>
</div>
</article>
Review the wrapper's boundaries. A template edit intended for a promotion should not accidentally wrap the article's definition, evidence and conclusion too. If the promotion appears on several page types, review those uses before changing the shared component.
Google treats data-nosnippet as boolean: writing data-nosnippet="false" still excludes the text. Remove the attribute to remove the restriction. Use valid, closed elements, and avoid toggling the attribute on existing nodes with JavaScript; the specification covers rendering and supported elements.
Apply a page-wide text-preview preference
For a page whose owner has deliberately chosen nosnippet, the HTML metadata example is:
<head>
<meta name="robots" content="nosnippet">
</head>
A length preference instead uses a numeric value:
<head>
<meta name="robots" content="max-snippet:120">
</head>
The 120-character value is an example, not a recommended default. Google provides no universal positive limit that reliably excludes featured snippets while preserving ordinary snippets. Its featured-snippet documentation recommends treating lower lengths as an experiment, rather than a precise format switch.
Do not present a length limit as a way to force Google to use your meta description verbatim. Record the actual result separately from the declared preference.
What should you check before deploying a rule?
Use a written change record to keep editorial intent, implementation and evidence together. This is our review workflow, not a Google ranking formula. Download the blank search preview control review CSV and create one row per affected page or template case.
- State the goal and owner. Write what should remain visible, what should be excluded, and who approved that publishing decision. “Improve SEO” is too vague to choose a restriction.
- Save the baseline. Record the URL, page template, current headers, robots metadata, relevant HTML block and capture time. Keep the current source/configuration so you can reverse the implementation.
- Inspect every delivery layer. Review the CMS, page template and response headers together, including a possible
X-Robots-Tag. Conflicting Google rules resolve toward the more restrictive instruction; an extra permissive tag does not neutralize a restrictive one. - Check the smallest affected scope. For a block exclusion, inspect the wrapper and its contents. For template metadata, include a representative page from every intended use and an unrelated control page that should retain its prior settings.
- Validate the delivered output. Compare the fetched HTML and rendered page with the change record. Keep code examples escaped in documentation. Confirm that the deployment did not apply the example to the guide explaining it.
- Separate deployment from processing. Save when the correct output went live, then check Google's retrieved version and later search observations. A successful build or ordinary HTTP request is not evidence of Google's processed state.
The worksheet includes fields for the owner, goal, URL/template, current rules, intended change, affected block, baseline capture, deployed output, Google crawl evidence, observed result and rollback reference. It is a blank review aid, not an automated scanner or a paid API integration.
What if the old text still appears?
First distinguish a bad implementation from an old observation. Google's AI-feature troubleshooting guidance recommends checking the HTML Googlebot received and allowing recrawl and processing. There is no guaranteed completion time. Our recrawl verification guide keeps publication, crawl and observed-result evidence separate.
Then inspect the actual source behind the observation. Was the result captured before the deployment? Does it link to a different URL, translated page or duplicate? Is the text still present in another block? Is it supplied separately in structured data? Google's preview-control specification notes that structured data remains usable even inside a data-nosnippet element; review that output separately.
Keep unresolved cases labeled unresolved. Do not repeatedly change a live restriction because a single search result differs from the expected presentation. Preserve the original and current captures, note what is uncertain, and use the appropriate support route if implementation and processing evidence do not explain the result.
How should you judge the outcome?
Judge a control change against its declared publishing goal before looking for traffic effects. For a block exclusion, the implementation check is whether the intended block has the attribute and the rest of the article retains its prior settings. Google's processed behavior is another observation, requiring its own dated evidence.
Keep search performance in a separate column. Compare similar queries, pages, markets and time windows, and record other changes made in the same period. Our low-CTR diagnostic workflow helps investigate clicks without assuming that every movement came from a snippet decision. A control can match a publisher's policy without increasing clicks; a click increase alone does not verify that a restriction worked.
Start with the blank review worksheet, agree on the intended scope, and preserve the rollback reference. That gives an editor and developer a concrete decision to review before a shared template affects more pages.
Frequently asked questions
Should I use nosnippet or data-nosnippet?
Choose according to scope: an intended page-wide text-preview restriction or one selected text block. Write the publishing goal and affected URLs before changing the implementation.
Does max-snippet guarantee that a page avoids featured snippets?
A positive limit is not a reliable format switch, and Google publishes no universal cutoff. Record the intended policy and inspect the result instead of treating an example number as a default.
Is noindex the same as nosnippet?
Noindex concerns inclusion in the index rather than only preview text. Google must be able to retrieve that instruction, so check crawler access as part of that separate decision.
Do these examples block every AI system from using content?
These examples concern Google Search controls. Do not infer another provider’s behavior, a training policy or licensing terms from a Google implementation example.
What should I save before a preview-control change?
Save the owner’s goal, affected URLs and templates, existing output, planned scope and rollback reference. Keep deployment verification, Google crawl evidence and later search observations as separate records.
Does this worksheet require a paid scanner or AI API?
No. It is a blank CSV for recording a manual review with your editor or developer. It does not run a scan, modify your site or promise a search appearance.
Make your next SEO decision with better evidence.
Explore practical guides to AI visibility, source citations, and choosing the right tools for your team.