Which directive wins when robots meta tags conflict?

The Citead team, updated

In short. Google applies the more restrictive applicable robots rule when page directives conflict.

Definition: For Google Search, the more restrictive applicable robots rule wins when page directives conflict. Google applies this rule to directives in robots meta tags and X-Robots-Tag response headers.

Key facts

  • Google's robots metadata reference gives max-snippet:50 and nosnippet as a conflict, with nosnippet taking effect.
  • Google's snippet guidance describes nosnippet as preventing a snippet, max-snippet: [number] as setting its maximum length, and data-nosnippet as excluding selected page content.
  • Google's machine-readable robots values list max-snippet and nosnippet among the values supported in robots meta tags and X-Robots-Tag.

What does the most-restrictive rule mean?

The rule selects the tighter outcome when two applicable directives control the same presentation. Google gives one direct example: when a page has both max-snippet:50 and nosnippet, nosnippet applies. The result prevents a search snippet, whereas max-snippet:50 sets a maximum length for a snippet.

The comparison is about the applicable instruction set for Google Search. A robots meta tag applies to search engine crawlers, while a crawler-specific tag can target a particular Google crawler. Google documents googlebot for text results and googlebot-news for news results. Rules that other search engines use can differ, so this precedence rule should be labelled as Google's documented behavior.

How are several tags combined?

Google allows multiple rules in one comma-separated value or in separate meta tags. The values are case-insensitive. A page can therefore express a combined instruction like this:

<meta name="robots" content="noindex">
<meta name="robots" content="nofollow">

The same documentation explains that different crawler targets contribute their negative rules. Its example combines a general nofollow rule with a googlebot noindex rule, and Google interprets the result for Googlebot as noindex, nofollow.

<meta name="robots" content="nofollow">
<meta name="googlebot" content="noindex">

This means that a crawler-specific directive can add a restriction to a general directive. The applicable crawler token matters before the restrictive result is evaluated.

Which delivery methods count?

The page-level directives can appear in an HTML robots meta tag or in the X-Robots-Tag HTTP response header. Google says that any rule available in a robots meta tag can also be specified as an X-Robots-Tag; multiple headers can be combined in the response, or their rules can be comma-separated. The header is useful for non-HTML resources such as PDF files, video files, and image files.

Google's reference says that these settings can be read and followed only when crawlers can access the pages that contain them. A robots.txt rule that prevents access can therefore prevent Google from reading a page-level directive. The reference also notes that the rules may be treated differently by other search engines.

How can a conflict be checked?

Read every robots meta tag in the delivered or rendered HTML and every X-Robots-Tag header. Group rules by their crawler name, apply the general robots rules to the relevant Google crawler, then add any crawler-specific negative rules. For snippet controls, record whether the result is a maximum length or a complete prohibition. Google's snippet documentation states that snippets are primarily created from page content and that Google sometimes uses the meta description element when it gives a more accurate description.

FAQ

What happens when you declare max-snippet:50 and nosnippet?

Google applies nosnippet, because it is the more restrictive rule in the documented example. The page has no search snippet under that combination.

Can you put the rules in separate robots meta tags?

Yes. Google supports separate meta tags as well as comma-separated rules. Separate tags can express noindex and nofollow as two entries with the same robots name.

Does Google require the meta tag to be in the HTML head?

Google Search respects robots meta tags in the body section too. The reference says that placement in the HTML head is not enforced by Google Search.

Do all search engines use this precedence rule?

Google documents this rule for its own search systems. The same reference says that other search engines may treat these rules differently.

Sources

  1. Google Search Central, "Robots Meta Tags Specifications", 24 March 2026
  2. Google Search Central, "How to Write Meta Descriptions", 20 April 2026
  3. Google Search Central, "Robots values supported by Google", 7 January 2024

Check how a page reads to answer engines. Open the GEO score analyzer

Test a page and see what to fix first

The analysis usually takes less than 10 seconds and needs no account.

400,000+ pages scored in the public benchmark