SEO · Technical SEO
Noindex meta tag: remove a page from Google the right way
Noindex is a rule that asks Google not to show a page in its search results. It is declared in a robots meta tag or in the X-Robots-Tag HTTP header. If you need to keep thank-you pages, internal search results or PDF files out of Google, it works as long as Googlebot can crawl the URL to read the rule. A robots.txt block prevents it from seeing the rule at all.
Key takeaways
- Noindex controls indexing: the page stays accessible to visitors who have the link.
- Google must crawl the URL to read the rule, so do not block it in robots.txt at the same time.
- The X-Robots-Tag header covers non-HTML files such as PDFs or images.
- For duplicates, Google advises against using noindex to choose the canonical URL.
Franck Gordi
Crawlable URL
Noindex rule
Removed from results
What does the noindex meta tag do?
When Googlebot crawls a page and finds the noindex rule, Google drops that page from its results, even if other sites link to it. The documentation states that this works at page level and does not restrict visitor access. It is neither protection nor content removal.
Removal is not instant. Google must recrawl the URL first; depending on the page’s importance, this can take anywhere from a few days to several months. The documentation suggests requesting a recrawl with the URL Inspection tool when timing matters.
For confidential content, the right answer is password protection or deleting the page. A noindex rule leaves the page readable by any person or tool that knows its address.
How do you write the robots meta noindex tag?
The general form goes in the page’s head section: <meta name="robots" content="noindex">. It applies to all crawlers that honour the rule. To target only Google, replace robots with googlebot in the name attribute.
Several rules can be combined in the same content attribute, separated by commas, for example noindex, nofollow. The value none is equivalent to noindex, nofollow. Google says values are case-insensitive; when rules conflict, the most restrictive one applies.
Noindex and nofollow answer different questions. Noindex concerns whether the page appears in results. Nofollow asks crawlers not to follow the links on the page. Adding nofollow by reflex to every noindex page also cuts discovery of the useful links it contains.
When should you use the X-Robots-Tag header?
The X-Robots-Tag HTTP header accepts the same rules as the meta tag, but the server sends it with the response. It becomes necessary for resources without a head section: PDF files, images, videos or other non-HTML documents.
It also lets you apply a rule to a set of files from the server configuration, for example every PDF in a directory. That power has a downside: an overbroad expression can deindex pages that should stay visible. Test the rule on URLs that should receive it and on neighbours that should not.
Before fixing a page that will not index, check both locations. A missing meta tag proves nothing if the server, CDN or a plugin already sends a noindex X-Robots-Tag.
Why should noindex and robots.txt not be combined?
Robots.txt controls crawling, not indexing. If a URL is blocked by robots.txt, Googlebot does not load the page and never reads the noindex rule inside it. Google notes that such a page can still appear in results, especially when other pages link to it.
This is the most common method error: blocking and deindexing at the same time to be safe. To remove a page, leave it crawlable with noindex until it drops out. Only then decide whether blocking crawling has a real purpose, for example to limit load across a large volume of useless URLs.
Google does not support a noindex directive written in the robots.txt file. The rule must be in the page or in the HTTP header.
- Crawl
- Googlebot must be able to load the URL: no robots.txt block.
- Read
- Rule present in the initial HTML or the HTTP header.
- Remove
- The page leaves results after the next crawl.
Noindex and JavaScript: why client-side changes are risky
Google states that when it finds noindex in the robots meta tag before running JavaScript, it may skip rendering the page. A script that later removes the rule has no guarantee of running.
The common case is an application that sends a generic initial HTML with noindex, then updates the tag once data loads. If the page should be indexed, the rule must not be in the initial response. Check the source served by the server, not only the DOM shown in the browser.
Conversely, adding noindex only through JavaScript depends on rendering. For a reliable rule, serve it in the initial HTML or in the HTTP header.
Noindex, canonical, 404 or password: which tool fits?
The right tool depends on what the page should become. For duplicate or near-duplicate pages, Google advises against noindex as a way to choose the canonical URL: the rule blocks indexing without saying which version to keep. A canonical tag or a redirect expresses that intent better.
For a deleted page with no replacement, a 404 or 410 response describes reality more directly than an empty noindex page. For private content, only access protection actually prevents reading.
Noindex remains suited to pages that help visitors but have no value in results: form confirmations, internal search, filters without their own demand, publicly reachable test environments while they await protection.
| Goal | Suitable tool | Check |
|---|---|---|
| Remove a useful page from results | noindex (meta or header) | Crawlable URL, not in the sitemap. |
| Exclude a PDF or image | X-Robots-Tag | Header present in the file response. |
| Consolidate duplicates | Canonical tag or redirect | No noindex on the version to keep. |
| Deleted page without replacement | 404 or 410 | No empty noindex page. |
| Confidential content | Password protection | Access denied without sign-in. |
How can you check that a noindex rule is being read?
Start with the URL’s public response: the command below prints the headers, including any X-Robots-Tag, then searches the initial HTML for the meta tag. Set the URL variable to a real affected address. No measured website result is being claimed.
Then use URL Inspection in Google Search Console. It shows whether Google detected a noindex rule and whether crawling is allowed. The Page indexing report groups URLs excluded by a noindex tag: review that list after each release to catch a rule set by mistake.
Finally, make sure the URL is not in the XML sitemap. A sitemap lists pages you want indexed; leaving noindex URLs in it sends two contradictory signals.
curl -sS -I "$URL" | grep -i x-robots-tag
curl -sS "$URL" | grep -io '<meta[^>]*robots[^>]*>'Frequently asked questions about the noindex meta tag
What does noindex mean?
Noindex is a rule asking search engines not to show a page in their results. It is declared in a robots meta tag or in the X-Robots-Tag HTTP header.
What is the difference between noindex and nofollow?
Noindex prevents the page from appearing in results. Nofollow asks crawlers not to follow the links on the page. The two rules are independent and can be combined.
Can you put noindex in robots.txt?
No. Google does not support noindex in robots.txt. Blocking a URL in robots.txt even stops Google from reading the noindex rule on the page.
How long does it take for a noindex page to disappear from Google?
Removal happens after the page is recrawled, which can take from a few days to several months. Requesting a crawl through URL Inspection can speed up processing.
Should you use noindex for duplicate content?
Google advises against it for choosing a canonical URL. A canonical tag or a redirect states which version to keep, whereas noindex blocks indexing without expressing a preference.
How can you tell whether a page is noindexed?
Check the robots meta tag in the initial HTML and the X-Robots-Tag header in the response, then URL Inspection in Google Search Console, which reports a detected noindex rule.
Extend the diagnosis
Google sources
Google documentation consulted on November 23, 2026. This guide provides a decision and verification framework, with no client case study, quantified result or guaranteed processing deadline.