The noindex tag asks search engines to leave a page out of their results. It is one line of HTML, or one HTTP header, and it is easy to get wrong in ways that fail silently: blocked in robots.txt so it is never read, left on from staging, added by JavaScript after Google has stopped looking, or contradicted by another rule. This guide covers every robots rule Google supports, how conflicts are settled, the robots.txt trap, the X-Robots-Tag header for PDFs and other files, and what these rules do to AI Overviews and other AI answers.
To write the tag, the free meta tag generator builds the robots meta tag and flags conflicting rules. To check that a URL is not blocked before you rely on its noindex, test it in the robots.txt tester.
Sources: Google’s robots specification[1] and Removals help[6]. The header count is what the homepages we fetched for our meta tags for SEO sample sent on 11 October 2026.
What the noindex tag does
There are two ways to set it, and Google says they “have the same effect”: a <meta> tag in the HTML, or an X-Robots-Tag header in the HTTP response[2]. Pick the meta tag for ordinary pages and the header for anything that is not HTML. Google also warns that “some search engines might interpret the noindex rule differently”[2], so the guarantee is Google’s, not the whole web’s.
When it works, Search Console’s Page indexing report lists the page under URL marked ‘noindex’: “When Google tried to index the page it encountered a ‘noindex’ directive and therefore did not index it.” Google’s advice there is short: if you meant it, “congratulations!”; if you did not, remove the tag or header[5].
The robots meta tag: syntax
The meta noindex tag goes in the head. Its name says which crawler the rule is for, and its content lists the rules:
<!-- Every search engine that supports noindex --> <meta name="robots" content="noindex"> <!-- Google only --> <meta name="googlebot" content="noindex"> <!-- Keep it out of results, but follow its links --> <meta name="robots" content="noindex, follow"> <!-- Two rules, two ways: one list, or separate tags. Both work. --> <meta name="robots" content="noindex, nofollow"> <meta name="robots" content="noindex"> <meta name="robots" content="nofollow">
- Which names work.
robotsmeans every crawler. Google supports two more,googlebot“for all text results” andgooglebot-news“for news results”, and says “other values are ignored”[1]. Other engines read their own names: Bing’s examples usebingbot[9]. - Case does not matter. “Both the name and the content attributes are case-insensitive.”
- Lists or separate tags. Rules can be comma-separated in one tag or split across several[1].
- The head is the norm, not a hard limit at Google. Google “doesn’t enforce placement of meta robots in the HTML head and will respect robots meta tags in the body section”[1]. Keep it in the head anyway; other crawlers may not be as forgiving.
Real sites often send more than one tag. On 11 October 2026, BBC’s search results page carried two robots tags, noindex and max-image-preview:large, and wordpress.org’s search pages carried two as well, noindex, follow, max-image-preview:large and noindex,follow. Both are valid; Google combines them.
Every robots rule Google supports
The noindex tag is one of twelve rules Google lists as valid, plus three it no longer uses. All of them work in the meta tag and in the header: “Any rule that can be used in a robots meta tag can also be specified as an X-Robots-Tag”[1].
| What it does | When to use it (our advice) | |
|---|---|---|
| all | No restrictions. The default; listing it has no effect | Never needed |
| noindex | Do not show the page, media or resource in results | Thank-you pages, internal search, thin utility pages |
| nofollow | Do not follow the links on this page | Rarely; prefer link-level rel attributes |
| none | Equivalent to noindex, nofollow | Shorthand, if you want both |
| nosnippet | No text snippet or video preview; also no direct input to AI Overviews and AI Mode | Content you want listed but not quoted |
| indexifembedded | Allows indexing when embedded via iframes, only together with noindex | Embeddable widgets and players |
| max-snippet:[n] | At most n characters of snippet; 0 means none, -1 no limit | Trimming quotes without removing them |
| max-image-preview:[size] | none, standard, or large (up to the viewport width) | large on articles with good images |
| max-video-preview:[n] | At most n seconds of video preview; 0 static image only, -1 no limit | Limiting video previews |
| notranslate | No translation of the page offered in results | Rarely |
| noimageindex | Do not index images on this page | Pages whose images should not appear in image search |
| unavailable_after:[date] | Stop showing the page after a date and time; crawl rate drops after it | Events, offers, time-limited pages |
| noarchive, nocache, nositelinkssearchbox | No longer used by Google Search | Only for Bing, see below |
unavailable_after takes a date “in a widely adopted format including, but not limited to RFC 822, RFC 850, and ISO 8601”, and is ignored if the date is not valid[1]. For the full head around these tags, see meta tags for SEO.
noindex, nofollow vs noindex, follow
noindex is about the page; nofollow is about its links. Combined as noindex, nofollow, or the shorthand none, the page drops out and its links are not followed. With noindex, follow (or just noindex, since following is the default), the page drops out but its links may still be crawled.
That distinction fades over time. In 2017 Google’s John Mueller said that when Google sees a noindex for long enough, “we will remove it completely. And then we won’t follow the links anyway. So in noindex and follow is essentially kind of the same as a noindex, nofollow”, and on timing: “It depends”[10]. That is a statement reported by Search Engine Roundtable, not Google documentation. The practical lesson: do not use a noindexed page as the only route to pages you want found. Link to them from indexed pages too.
When rules conflict: which one wins
Google states the rule plainly, with an example:
When different tags address different crawlers, Google adds them up: “the search engine will use the sum of the negative rules”. Its example is a page with robots: nofollow and googlebot: noindex, which Googlebot reads as noindex, nofollow[1].
| The page sends | Result | |
|---|---|---|
| max-snippet:50 and nosnippet | nosnippet (more restrictive) | |
| robots: nofollow, googlebot: noindex | noindex, nofollow for Googlebot (sum of negatives) | |
| index in one tag, noindex in another | noindex (more restrictive) | |
| Bing | NOARCHIVE and NOCACHE | Treated as NOCACHE, the less restrictive of the two |
The third Google row is our application of the stated rule, not an example Google gives. The Bing row is the odd one out: Bing says that if content has both tags, “we will treat it as NOCACHE”[9]. So do not assume every engine resolves conflicts the same way. Send one clear set of rules.
The robots.txt trap
This is the mistake most guides mention and many sites still make. To keep a page out of results, people block it in robots.txt and add noindex. The block wins, and the noindex is wasted. Google: “For the noindex rule to be effective, the page or resource must not be blocked by a robots.txt file”, because if it is, “the crawler will never see the noindex rule, and the page can still appear in search results”[2]. And writing noindex inside robots.txt is “not supported by Google”[2].
# robots.txt: WRONG if you want /thank-you/ out of search results. # Google never fetches the page, so it never sees the noindex on it. User-agent: * Disallow: /thank-you/ # RIGHT: let it be crawled... User-agent: * Allow: / # ...and put the rule on the page itself: # <meta name="robots" content="noindex">
Search Console names the symptom. A page under Indexed, though blocked by robots.txt was indexed because “someone else links to your page”, and Google’s fix is to reverse the instinct: “To avoid being indexed, remove the robots.txt block and use ‘noindex’”[5]. Once the page has dropped out, you may block crawling again if you need to save crawl capacity, but the noindex stops being read from then on.
The same logic applies to canonicals. Google does not recommend noindex to steer which of several duplicates is chosen, “because it will completely block the page from Search”[8]. For duplicates, use a canonical; for pages that should not be found at all, use noindex.
X-Robots-Tag: noindex for PDFs and other files
A PDF, an image or a video file has no head to put a meta tag in. Google: “To block indexing of non-HTML resources, such as PDF files, video files, or image files, use the X-Robots-Tag response header instead”[1]. The header takes the same rules, can name a crawler first, and is case-insensitive: “The HTTP header, the user agent name, and the specified values are not case sensitive”[1].
# What the server sends (any rule from the meta tag works here) X-Robots-Tag: noindex # Aimed at one crawler, as BBC and the Guardian do for Bing X-Robots-Tag: bingbot: noarchive # Several rules, and a date after which the URL should drop out X-Robots-Tag: noindex, nofollow X-Robots-Tag: unavailable_after: 2026-12-31
You set it in the server or the framework, not in the file:
<Files ~ "\.pdf$"> Header set X-Robots-Tag "noindex" </Files>
location ~* \.pdf$ {
add_header X-Robots-Tag "noindex";
}module.exports = {
async headers() {
return [{ source: "/files/:path*", headers: [{ key: "X-Robots-Tag", value: "noindex" }] }];
},
};export const metadata = {
robots: { index: false }, // writes <meta name="robots" content="noindex">
};The Next.js robots field also accepts a separate googleBot object, written as its own googlebot tag[13].
What real sites send
- BBC and the Guardian sent
X-Robots-Tag: bingbot: noarchiveon every page we requested on 11 October 2026, including their homepages and search pages. That rule does nothing at Google, and keeps their content out of Bing’s chat answers (more below). - Vercel adds
X-Robots-Tag: noindexto every preview deployment, and to old production deployments once a new one is promoted. The exception: it “omits X-Robots-Tag: noindex when a custom domain is assigned to a non-production branch”, so astaging.example.comcan be indexed unless you add the header yourself[11]. Check your staging domain.
# Is there a noindex in the header? curl -sI https://www.example.com/report.pdf | grep -i '^x-robots-tag' # ...or in the HTML a crawler receives (before any JavaScript runs)? curl -sL https://www.example.com/page | grep -ioE '<meta[^>]+name=["'"'"']?(robots|googlebot|bingbot)[^>]*>' # Is the URL blocked in robots.txt? Then neither of the above will be read. curl -s https://www.example.com/robots.txt
noindex and JavaScript
If your pages are built in the browser, be careful about who sets the tag. Google says you can add or change a robots meta tag with JavaScript, but “when Google encounters the noindex tag, it may skip rendering and JavaScript execution”, so using JavaScript to change or remove a noindex “may not work as expected”[4]. A page that ships noindex in its HTML and removes it in the browser can stay out of Google. Put the final rule in the server response.
Snippet controls, AI Overviews and other AI answers
The robots rules now reach further than the blue links. Here is what each company documents, read on 11 October 2026.
- Google. A page must be “indexed and eligible to be shown in Google Search with a snippet” to be a supporting link in AI Overviews or AI Mode, and Google names
nosnippet,data-nosnippet,max-snippetandnoindexas the ways to limit what is shown[7].nosnippetapplies to “all forms of search results (at Google: web search, Google Images, Discover, AI Overviews, AI Mode)” and prevents use “as a direct input for AI Overviews and AI Mode”;max-snippet“will also limit how much of the content may be used as a direct input”[1]. Google-Extended, a robots.txt token for some of Google’s other AI systems, is separate from these[7]. - Bing. “Content tagged NOARCHIVE will not be included in Bing Chat answers, not be linked to in the answers.” With NOCACHE, Bing “will only display URL/Snippet/Title in the answer”. Both stay in Bing’s search results, and NOARCHIVE content is not used to train Microsoft’s generative models[9]. The post dates from 2023, when the product was called Bing Chat.
- OpenAI, Anthropic, Perplexity. Their crawler documentation describes robots.txt controls and does not mention noindex or any meta tag[14][15][16]. OpenAI: sites opted out of OAI-SearchBot “will not be shown in ChatGPT search answers, though can still appear as navigational links”[14]. The AI crawler checker shows which of these bots your robots.txt admits, and should you block GPTBot weighs the trade-off.
span, div or section with data-nosnippet. Any value is ignored, so data-nosnippet="false" still excludes the content, and an unclosed tag can extend the excluded section[1].How long removal takes, and faster options
A noindex only acts when the page is recrawled, and Google says “it may take months for Googlebot to revisit a page”. You can request a recrawl with the URL Inspection tool[2]. For urgent cases, Search Console’s Removals tool hides a URL, but “a successful request lasts only about six months”. For a permanent removal, Google lists returning a 404 or 410, blocking access with a password, or a noindex, which it calls “less secure than the other methods”, and it says plainly: “Do not use robots.txt as a blocking mechanism”[6].
The mistakes that cost traffic
- A staging noindex that ships. WordPress adds
noindex,nofollowto the whole front end when its search engine visibility setting is switched off[12]. Launch checklists exist because that box gets forgotten. - A noindex template. One rule on a category or product template removes every page built from it.
- Noindex plus robots.txt. The rule is never read; see the trap above.
- Noindex added or removed by JavaScript. Google may never run the script.
- A preview or staging domain without one. Platforms that add it automatically may not on custom domains.
A stray noindex is a site-wide problem more often than a page-level one. CoreCited’s Site Audit reads the robots meta tag on every page it crawls and flags any page carrying noindex, so a template mistake shows up as a list rather than a traffic drop. The free account audits 10 pages; every limit is on the pricing page.
Questions people ask
What is a noindex tag?
A noindex tag is a robots rule that asks search engines not to show a page in their results. It is usually written as <meta name="robots" content="noindex"> in the page's head, or sent as an X-Robots-Tag: noindex HTTP header. Google says the two have the same effect. The page must not be blocked in robots.txt, or the rule is never seen.
What is the difference between noindex and nofollow?
noindex keeps the page itself out of search results. nofollow asks search engines not to follow the links on the page. They are independent and can be combined as noindex, nofollow, which Google also accepts as the single rule none. Without either, the default is index and follow.
Should I use noindex or robots.txt?
Use noindex to keep a page out of search results, and robots.txt to stop crawling. A page disallowed in robots.txt can still be indexed from links to it, and its noindex is never read. Google's own help says robots.txt is not the correct mechanism to avoid being indexed.
How do I noindex a PDF?
A PDF has no HTML head, so send the rule as an HTTP response header: X-Robots-Tag: noindex. Set it in your server or framework configuration for the files you want excluded, then check it with curl -I. Google says to use the X-Robots-Tag header for non-HTML resources such as PDF, video and image files.
How long does it take for noindex to remove a page?
Google has to recrawl the page first, and its documentation says that may take months for some pages. You can ask for a recrawl with the URL Inspection tool. If you need a page gone from results quickly, the Removals tool hides it for about six months while the noindex takes effect.
Does noindex keep a page out of AI Overviews and ChatGPT?
For Google, yes: a page must be indexed and eligible for a snippet to be a supporting link in AI Overviews or AI Mode, and nosnippet also stops content being used as a direct input. ChatGPT search is controlled differently: OpenAI documents robots.txt rules for OAI-SearchBot, not meta tags.
