Noindex is a small instruction that tells search engines a page can be crawled but should not appear in search results. It is easy to add and easy to get wrong. Most noindex problems are not about the syntax. They come from combining it with other signals that cancel it out, such as a robots.txt block that stops Google from ever seeing the tag, or a canonical tag that points somewhere else and asks for the opposite outcome.
This guide covers how noindex works, the two ways to deliver it (a meta tag and an HTTP header), the robots.txt mistake that catches experienced teams, how noindex and canonical tags interact, and how to confirm with Google's URL Inspection tool that the directive is doing what you intended.
- What noindex actually does
- When noindex is the right tool
- Method one: the robots meta tag
- Method two: the X-Robots-Tag HTTP header
- The classic mistake: noindex blocked by robots.txt
- Noindex and canonical tags: why mixing them sends mixed signals
- Checking noindex with URL Inspection
- Practical scenarios
- Removing a noindex
- Hygiene checklist
- Frequently asked questions
- The short version
What noindex actually does
Noindex is an indexing directive, not a crawling directive. That distinction explains almost every problem covered later in this article.
- Crawling is a search engine fetching a URL and reading its content.
- Indexing is the search engine storing that content and making it eligible to appear in results.
When Google crawls a page and finds a noindex directive, it drops the page from its index or never adds it. The page can still be reached by anyone with the link. It is not password-protected, hidden or deleted. It just stops appearing in search results.
The order matters. Google has to crawl the page before it can read the directive. A noindex tag on a page Google is not allowed to fetch does nothing, because Google never sees it.
A few other practical points:
- Noindex is not instant. It takes effect when the page is next crawled and processed. For a page Google visits often, that may happen quickly. For a deep page that rarely gets crawled, it can take much longer.
- Noindex does not hide the URL from people. If the content is sensitive, use authentication. Noindex keeps a page out of search results. It does not keep it private.
- Search engines honour it, but not every bot does. Google and other major search engines respect noindex. Scrapers and other automated tools may ignore it. It is a request to compliant crawlers, not an access control.
When noindex is the right tool
Noindex suits pages that need to exist and be reachable but add no value as search results. Common examples:
- Internal search result pages, which can multiply into large numbers of thin, near-duplicate URLs.
- Thank-you, confirmation and post-checkout pages.
- Login, account and cart pages.
- Thin tag or archive pages that duplicate category listings.
- Filtered or sorted listing pages that do not deserve to rank on their own (often, though not always – more on this below).
- Landing pages built for paid campaigns that duplicate organic content.
- Legal or utility pages you would rather not surface, where that is a deliberate editorial choice.
It is the wrong tool when you want to:
- Save crawl activity. Google still has to crawl a page to read its noindex, so noindex does not reduce crawling much in the short term. If the aim is to stop crawling, robots.txt is the relevant mechanism, with the trade-offs described below.
- Consolidate duplicates into one preferred version. That job belongs to canonical tags and redirects.
- Protect private content. Use authentication.
- Remove a page permanently. If the page should no longer exist, return a 404 or 410 status, or redirect it to a relevant replacement.
Deciding which pages should be indexable is part of how a site is organised. If you are working through a large number of thin or overlapping pages, the broader thinking in Site Architecture for PROs: From Auditing to Implementing Topic Clusters can help you decide what deserves its own indexable URL before you start adding directives.
Method one: the robots meta tag
The most common way to apply noindex is a meta tag in the <head> of an HTML page:
<meta name="robots" content="noindex">
The name="robots" attribute addresses all crawlers that support the tag. To target only Google's crawler, use its user agent name:
<meta name="googlebot" content="noindex">
You can also include more than one tag, for example one general and one specific, when different crawlers need different instructions. Google's documentation explains how it treats combined or conflicting rules. In general it applies the more restrictive instruction, but check the official documentation for the precise behaviour.
Combining noindex with other values
The content attribute takes a comma-separated list. Some common combinations:
<meta name="robots" content="noindex, follow">
<meta name="robots" content="noindex, nofollow">
noindex, followasks search engines to leave the page out of the index but still follow its links.followis the default behaviour, so writing it out is optional. Some teams include it to make the intent clear.noindex, nofollowasks search engines to leave the page out and not follow its links.
There is also the shorthand none, which Google treats as equivalent to noindex, nofollow. Spelling out both values is easier for colleagues to read, so many teams avoid the shorthand.
One caveat about noindex, follow: Google representatives have said publicly that a page kept on noindex for a long time may eventually be crawled less often, and its links may be treated as less important over time. Treat this as a general tendency rather than a guaranteed outcome. In practice it means you should not depend on a long-term noindexed page as the main way search engines discover important content. Link to that content from indexable pages as well.
Placement rules that matter
- Put the tag in the
<head>. That is where Google's documentation says to place it. Google says it also respects robots meta tags in the body, but the head is the safe, conventional location. - It must be in the HTML Google processes. Google can render JavaScript, and a noindex added by JavaScript can work. The reverse case is a known trap: if the original HTML contains noindex, Google may skip rendering the page, so JavaScript that removes the noindex may never run. Do not ship a noindex in the server response and expect client-side code to take it away.
- Watch for duplicate or conflicting tags. Themes, plugins and tag managers can each add their own robots meta tag. If one says
indexand another saysnoindex, expect the restrictive one to win. Check the rendered source, not only your template.
Method two: the X-Robots-Tag HTTP header
The meta tag only works in HTML. To noindex a PDF, an image, a video file, a spreadsheet or any other non-HTML resource, send the directive in the HTTP response header:
X-Robots-Tag: noindex
The header accepts the same values as the meta tag, so combinations work too:
X-Robots-Tag: noindex, nofollow
You can also target a specific crawler by placing its user agent name before the directive:
X-Robots-Tag: googlebot: noindex
Setting the header on common servers
How you set the header depends on your stack. These examples show the general pattern. Check your server's documentation and test before deploying, because a header rule that matches too much can noindex an entire site.
On Apache, using a .htaccess file or server configuration with the headers module enabled, you can match by file type:
<FilesMatch ".pdf$">
Header set X-Robots-Tag "noindex"
</FilesMatch>
On nginx, inside a location block:
location ~* .pdf$ {
add_header X-Robots-Tag "noindex";
}
Many CDNs, edge platforms and application frameworks also let you set response headers through rules or middleware. Whatever the method, keep the matching pattern narrow and documented.
Meta tag or header?
| Situation | Better fit |
|---|---|
| A single HTML page or a handful of templates | Meta tag |
| PDFs, images, documents and other non-HTML files | X-Robots-Tag header |
| Rules based on URL patterns across many resources | X-Robots-Tag header, set at server or edge level |
| You only have access to the CMS, not the server | Meta tag (often through an SEO plugin or page setting) |
| You want the directive visible to anyone viewing page source | Meta tag |
Both carry the same meaning. Pick the one your team can maintain and audit. The header is easy to forget because it does not show up in page source, so record any header-based rules somewhere your team will find them.
The classic mistake: noindex blocked by robots.txt
This is the most common noindex error, and it follows directly from the crawl-versus-index distinction.
A team wants a set of pages out of Google. They add noindex to the pages, then also add a Disallow rule for those URLs in robots.txt to be thorough. The result is the opposite of what they wanted.
The sequence:
- Robots.txt tells Google not to crawl the URLs.
- Google respects that and does not fetch the pages.
- Because Google does not fetch them, it never sees the noindex tag.
- If the URLs are linked from elsewhere, on your site or other sites, Google can still know they exist and may keep them in the index, sometimes shown with little or no description because it could not read the content.
So the robots.txt rule does not strengthen the noindex. It disables it. A blocked URL with noindex can stay indexed, while an unblocked URL with noindex gets removed.
If you are seeing URLs reported as indexed despite being blocked, or blocked pages turning up in results, the walkthrough in /blocked-by-robots-txt/ explains how that status arises and how to fix it.
The correct sequence for removing pages
If you want pages out of the index and eventually want to stop them being crawled:
- Make sure the URLs are crawlable. Remove or loosen any robots.txt rule that blocks them.
- Add noindex with the meta tag or the X-Robots-Tag header.
- Wait for Google to recrawl and process the pages. Confirm with URL Inspection and the indexing reports in Search Console that they are being excluded because of noindex.
- Only then, if you still have a reason to, add a robots.txt block. Reasons are usually about crawl load on very large sites. Be aware that once you block them, Google can no longer see the noindex. If the URLs pick up links later, they could reappear in the index without content. On many sites the simplest option is to leave the noindex in place and skip the robots.txt block.
The "noindex in robots.txt" myth
Some older guides recommended putting a Noindex: line directly in robots.txt:
# This does not work in Google
User-agent: *
Noindex: /private-section/
Google never documented this as a supported rule, and some years ago it announced that it would stop honouring unsupported robots.txt rules, including noindex. Robots.txt is for managing crawling. It is not a place to declare indexing directives. If you find a Noindex: line in an old robots.txt file, assume it does nothing in Google and replace it with a real noindex delivered by meta tag or header. Check Google's current robots.txt documentation for the full list of supported rules.
To summarise the relationship between noindex and robots.txt:
| You want | Use | Avoid |
|---|---|---|
| Page out of search results | Noindex (meta or header), page crawlable | Robots.txt disallow at the same time |
| Google not to fetch a URL | Robots.txt disallow | Expecting this to remove an already indexed URL |
| Both, eventually | Noindex first, confirm removal, then consider disallow | Doing both on the same day |
| Noindex rule inside robots.txt | Nothing; it is not supported by Google | Relying on legacy Noindex: lines |
Noindex and canonical tags: why mixing them sends mixed signals
The second common conflict is noindex used together with a canonical tag.
A canonical tag says: "This page is a duplicate or variant. The preferred version is over there." Its purpose is consolidation. Google can merge signals from the variants into the preferred URL and show that one in results. The full mechanics are covered in /canonical-tags/.
Noindex says: "Do not put this page in the index at all."
Now consider the combinations.
Noindex plus a canonical pointing to another URL
<meta name="robots" content="noindex">
<link rel="canonical" href="https://example.com/preferred-page/">
This is a mixed message. The canonical says "treat me as part of the preferred page", and the noindex says "exclude me". Google has to decide which signal to weight more, and that decision is not under your control. In the worst case, the conflict can affect how signals are consolidated into the URL you actually want to rank.
Google's guidance on consolidating duplicate URLs advises against using noindex to choose a canonical within a site. If a page is a duplicate of another and you want the other one to rank, use a canonical tag (or a redirect if the duplicate does not need to exist) and leave noindex out.
Noindex plus a self-referencing canonical
<meta name="robots" content="noindex">
<link rel="canonical" href="https://example.com/this-page/">
This is less harmful, but it still makes little sense. A self-referencing canonical says "I am the preferred version", and the noindex says "but do not index me". Many CMSs and SEO plugins add self-referencing canonicals to every page automatically, so this pairing often appears by accident. It is not usually urgent, but it is worth cleaning up so your signals agree. Some platforms remove the canonical automatically when a page is set to noindex, and others do not.
Canonical pointing to a noindexed page
The reverse problem: page A has a canonical pointing to page B, and page B is noindexed. You have nominated a preferred version that you have also excluded from the index. Google may ignore the canonical and pick another URL, or the content may end up poorly represented in results. Canonical targets should be indexable, return a 200 status, and not be blocked by robots.txt.
Choosing between noindex and canonical
| Situation | Use |
|---|---|
| Near-duplicate variants of a page (tracking parameters, sort orders, print versions) where one version should rank | Canonical to the preferred version |
| A duplicate that no longer needs to exist | 301 redirect to the preferred version |
| A page that should exist but never appear in search (thank-you page, internal search) | Noindex, with no cross-page canonical |
| Paginated series | Usually neither noindex nor a canonical to page one; let component pages be indexed and linked so their contents are discoverable |
| Filtered listing pages | Depends: canonical if the filter barely changes content, noindex if the pages are thin and you never want them in results, indexable if they meet real search demand |
The guiding rule: canonical is for "this belongs with that". Noindex is for "this should not be in search". Choose one for each URL.
Checking noindex with URL Inspection
Adding a directive is only half the job. You need to confirm that Google sees it. Google Search Console's URL Inspection tool is the most direct way to check a single URL.
Two views: indexed data and live test
URL Inspection shows two kinds of information:
- What Google currently has on record for the URL, based on its last crawl. This shows whether the URL is indexed and, if not, why.
- A live test, which fetches the URL now and reports what Google would see, including whether indexing is allowed and whether a noindex was detected.
Both are useful. The indexed view tells you the current state in Google. The live test tells you whether your change is in place and readable. Labels and layout in Search Console change over time, so use Google's Search Console Help for the current wording. The concepts stay the same.
What to check for a page you want noindexed
- Run a live test. Confirm Google can fetch the page, with crawling allowed and not blocked by robots.txt, and that it detects the noindex. If the live test says the page is blocked by robots.txt, you have hit the classic mistake: Google cannot see your noindex.
- Check where the noindex was found. The report may show whether it came from a meta tag or an HTTP header. That helps if you were not expecting a header-based rule.
- Look at the indexed status. If the page is still shown as indexed, Google may not have recrawled it since you added the directive. You can request indexing to prompt a recrawl, but a request is not a guarantee of timing.
- Look at the rendered HTML. The tested page view lets you check the HTML Google worked with. Confirm the robots meta tag is present and that nothing else, such as a second tag from a plugin, contradicts it.
What to check for a page you want indexed
URL Inspection also catches the opposite problem: a page you want in search that is carrying a noindex by mistake. This happens often after:
- Launching a site from staging. A sitewide noindex set during development is left in place on the live site.
- Theme or plugin updates that change default robots settings for some content types.
- CDN or server rules that add an X-Robots-Tag header more widely than intended.
- Template changes that apply a noindex condition to more page types than planned.
If an important page has dropped from search, inspect it first. A stray noindex is one of the fastest things to confirm or rule out.
Checking at scale
URL Inspection works one URL at a time. For a site-wide view:
- The page indexing report in Search Console groups excluded URLs by reason, including exclusion because of a noindex directive. Review that list now and then to make sure it contains only pages you meant to exclude.
- A site crawler can extract robots meta tags and X-Robots-Tag headers across every URL, so you can catch unexpected noindex directives and noindex-plus-canonical conflicts before Google does.
- Command-line checks confirm headers on a specific resource. For example,
curl -I https://example.com/file.pdfreturns the response headers, where you can look for anX-Robots-Tagline.
Practical scenarios
Internal search results
Internal search can generate an almost unlimited number of URLs. The usual approach is to noindex the results pages so they never compete in search. Some large sites also restrict crawling of search URLs in robots.txt to control crawl load. If you do both, apply the order described earlier: noindex first, confirm, then consider the block. Accept that any search URLs that are already indexed and later blocked may linger.
Faceted navigation
Filter combinations on category pages can produce huge numbers of variants. There is no single right answer. Some facet pages match real search demand (for example a category filtered by a popular attribute) and deserve to be indexable, with good internal links and unique content. Others are thin combinations that should be canonicalised to the parent category or noindexed. Avoid stacking noindex, canonical and robots.txt rules on the same facet URLs. Decide what role each type of facet plays and apply one consistent rule.
Staging and development sites
Noindex on a staging site is better than nothing, but it is a weak protection. It relies on crawlers honouring it, and it is the very setting most often carried accidentally into production. Password protection or IP restriction keeps staging sites out of search and away from the public more reliably. If you also use noindex on staging, add a launch checklist step that confirms the production site returns no noindex on pages that should be indexed.
PDFs and downloadable files
If you publish PDFs that duplicate HTML pages, or documents you do not want in search, use the X-Robots-Tag header. A meta tag cannot be added to a PDF. If the PDF is the preferred version of a piece of content, the header can also carry a canonical link relation, but that is a separate decision from noindex.
Pages with structured data
Structured data does not help a noindexed page. If a page is out of the index, its markup cannot make it eligible for rich results. If you are reviewing which pages should carry markup, such as FAQ content, decide indexability first. FAQ Schema After May 2026: What Changed, What Still Works covers the current state of that markup, and it only matters for pages you want indexed.
Removing a noindex
Reversing a noindex follows the same logic in the other direction:
- Remove the meta tag or header rule.
- Make sure the page is crawlable, with no robots.txt block, and returns a 200 status.
- Make sure the page has a sensible canonical, either self-referencing or absent, rather than one pointing elsewhere.
- Add it to your XML sitemap and link to it from relevant indexable pages so Google finds it again.
- Use URL Inspection to run a live test and, if useful, request indexing.
A page that was noindexed for a long time may be crawled less often, so it can take a while to return. Internal links from well-crawled pages help.
Hygiene checklist
- Keep noindexed URLs out of your XML sitemaps. A sitemap says "please index these", which contradicts the directive.
- Do not block noindexed URLs in robots.txt while you still need Google to see the noindex.
- Do not use noindex to pick a canonical. Use canonical tags or redirects.
- Do not point canonicals at noindexed pages.
- Check rendered HTML, not just templates, for duplicate or conflicting robots tags.
- Document any X-Robots-Tag rules set at server, CDN or framework level.
- Add a pre-launch and post-deploy check for unintended sitewide noindex.
- Review the excluded-by-noindex list in Search Console periodically.
Frequently asked questions
Does noindex remove a page from Google immediately?
No. Google has to recrawl the page and process the directive. That can be quick for frequently crawled pages and slower for others. If you need something hidden from results urgently while the noindex takes effect, Search Console offers a removals feature for temporary hiding. Check Google's documentation for how long it lasts and what it covers.
Can I put noindex in robots.txt?
Not in a way Google supports. Google does not honour a Noindex: rule in robots.txt. Use a robots meta tag or an X-Robots-Tag header, and keep the page crawlable so Google can read it.
Why is a page blocked by robots.txt still appearing in search?
Robots.txt controls crawling, not indexing. If Google knows a blocked URL exists, usually through links, it can index the URL without reading its content. To remove it, allow crawling and apply noindex.
Should I use noindex or a canonical tag for duplicate pages?
For duplicates where one version should rank, use a canonical tag or a redirect. Noindex is for pages that should not appear in search at all. Using both on the same page sends conflicting signals.
Is "noindex, follow" still useful?
It can be, for pages you want out of the index whose links still matter. Do not rely on long-term noindexed pages as the main route to important content, because they may be crawled less over time. Link to key pages from indexable pages too.
Does noindex save crawl budget?
Not directly. Google still crawls a page to see its noindex. Pages that stay noindexed may be crawled less often over time, but if reducing crawling is the main goal, robots.txt is the tool built for that, with the trade-offs described above.
How do I check whether a PDF is noindexed?
Inspect its response headers, either with a command-line request such as curl -I or with your browser's developer tools, and look for an X-Robots-Tag header containing noindex. URL Inspection in Search Console can also show whether Google detected the directive.
Can JavaScript add or remove noindex?
JavaScript can add a noindex that Google may pick up after rendering. Removing a noindex with JavaScript is unreliable, because Google may not render a page whose original HTML already says noindex. Keep the server-delivered HTML aligned with your intent.
The short version
Noindex keeps a page out of search results, but only if search engines can crawl the page and read the directive. Deliver it with a robots meta tag for HTML or an X-Robots-Tag header for everything else. Do not block the same URLs in robots.txt, do not pair noindex with a canonical pointing elsewhere, and do not expect a Noindex: line in robots.txt to work. Then confirm the result with URL Inspection rather than assuming the change worked.