A robot tag is a single line of code in the head section of a web page that tells search engines what they are allowed to do with that page. It can keep a page out of Google, stop crawlers from following its links, or control how the page appears in search results.
It is a small tag with a big job. One wrong value can remove an important page from the index, and one missing tag can let a page you never wanted ranked show up in search results. This guide explains what a robot tag is, how every directive works, and the mistakes that catch out even experienced site owners.
What Is a Robot Tag?
A robot tag, also called a robots meta tag, is an HTML meta element placed inside the <head> section of a page. It gives page-level instructions to search engine crawlers such as Googlebot.
Here is what the most common version looks like:
<meta name="robots" content="noindex, nofollow">
The tag has two parts. The name attribute says which crawler the instruction is for. The value robots addresses every crawler that follows the standard. The content attribute holds the actual instructions, called directives, separated by commas.
You can also target one crawler at a time. Replace robots with a crawler token such as googlebot or googlebot-news and only that crawler follows the rule. Google supports those two tokens in the robots meta tag. Other values are ignored.
The tag only works on HTML pages, and only on the page that contains it. It does not affect the rest of your site, and it does not work if it is placed in the body of the page instead of the head.
How the Robot Tag Works
When a search engine crawler visits a page, it reads the head section and looks for a robots meta tag. If it finds one, it follows the instructions. If there is no tag at all, the crawler assumes the default behaviour, which is index, follow. That means the page can be indexed and its links can be followed.
That default matters. You never need to add a robot tag that says index, follow, because that is already what happens. You only add a robot tag when you want to change the default.
There is one condition that trips people up. For Google to obey a robot tag, it first has to crawl the page and read the tag. A tag cannot work on a page Google is not allowed to fetch. This is why the robot tag and robots.txt must never fight each other, as explained below.
If several robot tags or headers give conflicting instructions, Google follows the most restrictive one. A page with index in one tag and noindex in another is treated as noindex. The one exception is targeting: if a page has both a generic robots tag and a googlebot tag, Google follows the googlebot tag and ignores the generic one.
Every Robot Tag Directive You Need to Know
Google supports the following directives in the robots meta tag. Values are not case sensitive, and you can combine several in one tag.
| Directive | What it does |
|---|---|
all | No restrictions. This is the default, so writing it changes nothing. |
index | Allow the page in search results. This is the default, so writing it changes nothing. |
noindex | Do not show this page in search results. |
nofollow | Do not follow the links on this page. |
none | Shorthand for noindex, nofollow. |
nosnippet | Do not show a text snippet or video preview for this page in search results. It also keeps the content out of AI Overviews and AI Mode. |
noimageindex | Do not index the images on this page. |
indexifembedded | Allow Google to index the content if the page is embedded in another page through an iframe, even with noindex. It only works together with noindex. |
max-snippet:[number] | Limit the text snippet to a number of characters. Use 0 for no snippet and -1 for no limit. |
max-image-preview:[setting] | Set the largest image preview allowed: none, standard, or large. |
max-video-preview:[number] | Limit a video preview to a number of seconds. Use 0 for a static image only and -1 for no limit. |
notranslate | Do not offer a translation of this page in search results. |
unavailable_after:[date] | Do not show this page in search results after the given date. Google also slows crawling of the page considerably after that date. |
Two more tools work alongside the tag. The data-nosnippet attribute can be added to a span, div, or section to keep one part of a page out of search snippets while the rest still appears. And noarchive, once used to block the cached copy of a page, is no longer used by Google because the cached link feature no longer exists.
For the full list with the exact wording, see the official robots meta tag specification from Google Search Central.
Noindex vs Nofollow vs Robots.txt: What Is the Difference?
These three controls are constantly confused, and the confusion causes real damage. They do different jobs in different places.
| Control | Where it lives | What it controls | Is the page still crawled? |
|---|---|---|---|
noindex meta tag | The page head | Whether the page appears in search results | Yes, it must be crawled to be read |
nofollow meta tag | The page head | Whether crawlers follow the links on the page | Yes |
robots.txt disallow | The robots.txt file | Whether crawlers may fetch a URL at all | No, fetching is blocked |
The short version is simple. Robots.txt controls whether a crawler can visit. The robot tag controls what happens once it is there.
That distinction explains the most common robot tag mistake on the web. A site owner adds noindex to a page and also blocks that page in robots.txt, expecting it to disappear from Google. It does not. Google cannot fetch the blocked page, so it never sees the noindex instruction, and the URL can stay visible in search results as a bare link with no description.
The correct order is the other way round. Add noindex, leave the page crawlable, wait until Search Console confirms the page has dropped out of the index, and only then add a robots.txt disallow if you also want to save crawl budget.
One related fact is worth knowing. Google stopped honouring noindex rules written inside robots.txt on 1 September 2019. If you inherited a robots.txt file that still contains them, those lines have done nothing for years. If you are auditing a site, our technical SEO audit guide walks through the full checklist, and our guide on how to check a website for search engine optimization shows how to spot these issues in practice.
When to Use a Robot Tag
A robot tag is for pages that serve visitors but have no business ranking in search. Common uses include:
- Thank-you and order confirmation pages
- Login, account, and checkout pages
- Internal search result pages
- Thin tag, filter, and faceted pages that duplicate other content
- Staging and development copies of a site
- Paginated or filtered versions of a page, usually with
noindex, followso the links on them are still followed
The combination noindex, follow is the one most people actually want. It keeps the page itself out of search results while still letting crawlers follow its links and discover the pages it points to. That is useful for paginated archives and filtered category pages, where the page itself should not rank but the links on it still matter.
Do not use a robot tag for security. A noindex tag does not hide a page. Anyone with the URL can still open it, and the URL can still appear in results as a bare link if other pages link to it. Private content needs a login or server-level access control, not a meta tag.
Robot Tag vs X-Robots-Tag
The robots meta tag only works in HTML, because it lives in the HTML head. When you need the same control on something that has no head section, use the X-Robots-Tag instead.
The X-Robots-Tag is an HTTP response header sent by the server. It accepts exactly the same directives, and it works on any kind of file: PDFs, images, videos, spreadsheets, and whole directories.
X-Robots-Tag: noindex
That single header keeps a PDF out of search results, something a meta tag can never do. It is also the practical way to apply one rule to an entire folder of files at once, without editing each file. If you run a site with downloadable reports or media files, the header is usually the right tool.
Common Robot Tag Mistakes
Most robot tag problems come from a short list of errors. Check for these before you blame anything else.
Blocking the page in robots.txt and adding noindex. As covered above, the two instructions cancel each other out. The page must stay crawlable for noindex to work.
Putting the tag in the body. Meta tags only work inside the <head>. A robot tag placed in the body is ignored by every major crawler.
Using noindex on a page that should rank. This is the expensive one. A single noindex left over from staging, or copied across by a template, can remove a money page from Google. If a page suddenly vanishes from search results, check its robot tag first.
Using none as a shortcut. It means noindex, nofollow to Google, but other search engines, including Bing, do not support it. Write the two directives out in full instead.
Expecting instant removal. After you add noindex, Google still has to recrawl the page before the change takes effect. That can take days or weeks depending on how often the page is crawled. Pages with a long-standing noindex are crawled less over time. You can watch progress in Search Console with the URL Inspection tool.
Trusting old robots.txt rules. Any noindex directive inside robots.txt has been ignored since 1 September 2019. Clean those lines out so nobody mistakes them for working controls.
How to Check Your Robot Tag
Checking takes less than a minute. Open the page in a browser, view the page source, and search for robots near the top of the head section. If you see <meta name="robots" content="noindex">, the page is telling search engines to stay out of the index.
For a live page, Google Search Console is the better check. Paste the URL into the URL Inspection tool and look at the indexing section. It reports whether the page is indexed and whether a noindex tag or header is the reason it is not.
For a quick check without opening a browser, use the command line:
curl -s https://example.com/page/ | grep -i "robots"
If you manage several sites, add the robot tag check to your regular audit routine. Our SEO tools guide lists the tools that surface these tags automatically during a crawl, so a stray noindex is caught before it costs traffic.
Frequently Asked Questions
What does a robot tag do?
A robot tag tells search engine crawlers how to treat a single page: whether to index it, whether to follow the links on it, and how the result may be displayed. It lives in the page head and applies only to that page.
What is the difference between noindex and nofollow?
noindex means do not put this page in search results. nofollow means do not follow the links on this page. They are independent, so a page can be indexed while its links are not followed, or excluded from the index while its links are still followed. The combination noindex, follow is what most people want on paginated and filtered pages.
Does a robot tag stop Google from crawling a page?
No. A robot tag cannot stop crawling, because Google has to crawl the page to read the tag. If you want to stop crawling, use a robots.txt disallow. If you want to stop indexing, use noindex and keep the page crawlable.
Why is my page still in Google after I added noindex?
Google needs to recrawl the page before it sees the new tag, and that can take days or weeks. If the page is also blocked in robots.txt, Google cannot recrawl it at all and the tag never takes effect. Check the URL in Search Console to see what Google actually sees.
Can I use a robot tag on a PDF or an image?
No, because those files have no HTML head for the tag to live in. Use the X-Robots-Tag HTTP header instead. It accepts the same directives and works on any file type.
Is noindex the same as blocking a page in robots.txt?
No. A robots.txt disallow stops crawlers from fetching the page, while noindex tells crawlers that fetched the page not to show it in search results. A blocked page can still appear in results as a bare URL if other pages link to it. A page with noindex is removed properly, but only if it stays crawlable.

