Free auditStart free
GlossaryGlossary · Crawling and indexing

Robots meta tag

The robots meta tag controls how one HTML page is indexed and shown in Google Search. Valid directives, syntax, how conflicts resolve and the robots.txt trap.

3 min
read
2
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

The robots meta tag is an HTML tag in a page's <head> that controls how that page is indexed and shown in Google Search, for example noindex, nofollow or nosnippet. When rules for different crawlers differ, Google says it uses the sum of the negative rules. If robots.txt blocks the page, Google says the crawler never sees a noindex rule.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Check it

What the robots meta tag does

Google says the robots meta tag "lets you use a granular, page-specific approach to controlling how an individual HTML page should be indexed and served to users in Google Search results." Google says to place it in the <head> section of the page, though Google Search does not enforce that placement and also respects tags in the body.

For files that have no HTML head, such as PDFs, use the X-Robots-Tag HTTP header instead. For the deindexing use case in depth, see noindex.

Keep one page out of results
<meta name="robots" content="noindex">
02Explained

Directives Google supports

DirectiveWhat Google says it does
all"There are no restrictions for indexing or serving." It is the default
noindex"Do not show this page, media, or resource in search results."
nofollow"Do not follow the links on this page."
none"Equivalent to noindex, nofollow."
nosnippet"Do not show a text snippet or video preview in the search results for this page."
indexifembeddedLets Google index a page's content when it is embedded in another page through iframes or similar HTML tags, despite noindex. It only has an effect alongside noindex
max-snippet:[number]Limits the text snippet to [number] characters
max-image-preview:[setting]Sets the maximum size of an image preview
max-video-preview:[number]Limits a video snippet to [number] seconds
notranslate"Don't offer translation of this page in search results."
noimageindex"Do not index images on this page."
unavailable_after:[date/time]"Do not show this page in search results after the specified date/time."
03Checklist

Syntax rules and gotchas

First2
Combine rules with commas in one tag, or use several tags. Google: "You can create a multi-rule instruction by combining robots meta tag rules with commas or by using multiple meta tags."
Case does not matter. "Both the name and the content attributes are case-insensitive."
Next2
Rules for different crawlers add up. When multiple crawlers are specified with different rules, Google says "the search engine will use the sum of the negative rules." A robots tag with nofollow plus a googlebot tag with noindex is read by Googlebot as noindex, nofollow.
Only two user agent tokens work. Google says it supports two user agent tokens in the robots meta tag, googlebot for all text results and googlebot-news for news results; other values are ignored.
Then1
Don't block the page in robots.txt. For noindex to work, Google says the page "must not be blocked by a robots.txt file". If it is blocked, "the crawler will never see the noindex rule, and the page can still appear in search results", for example if other pages link to it.
Target Googlebot only, with two rules
<meta name="googlebot" content="noindex, nofollow">
04How it works

Check it in 2 minutes

  1. 01

    View the live HTML

    Open the page, view source and search for name="robots" inside the head. Check the rendered page too if your CMS or a script injects the tag.

  2. 02

    Check robots.txt

    Confirm the URL is not disallowed in robots.txt. If it is, the tag is never read.

  3. 03

    Look for conflicts

    Search the source for a second robots or googlebot tag, and check the HTTP headers for an X-Robots-Tag. Google says tags aimed at different crawlers are combined by summing the negative rules.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What is the robots meta tag?

An HTML tag in a page's head that tells search engines how to index and serve that page, such as noindex or nosnippet.

02What is the difference between robots.txt and the robots meta tag?

Robots.txt controls whether a URL is crawled. The robots meta tag controls how a crawled page is indexed and shown. Google says that if robots.txt blocks the page, the crawler never sees a noindex rule.

03Is the robots meta tag case-sensitive?

No. Google says both the name and content attributes are case-insensitive.

04What if two robots rules conflict?

For different crawlers, Google says it uses the sum of the negative rules. For example, a robots tag with nofollow and a googlebot tag with noindex is read by Googlebot as noindex, nofollow.

Sources · 2

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  1. 01Block Search indexing with noindex | Google Search Centraldevelopers.google.com · checked 2026-10-25
  2. 02Robots meta tag, data-nosnippet, and X-Robots-Tag specifications | Google Search Centraldevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly