SEOAsist
All posts

What Is a Noindex Tag? Using It Correctly with Robots.txt and Meta Robots

By SEOAsist Editor

What Is a Noindex Tag? Using It Correctly with Robots.txt and Meta Robots

What is a noindex tag? It is a directive that tells search engines they may crawl a page but should not list it in search results. It is set with the meta robots tag in the page's HTML or with the X-Robots-Tag in the HTTP header. Robots.txt, on the other hand, manages crawling, not indexing. Mixing the two up is a common technical SEO mistake.

What is a noindex tag?

Noindex is an instruction asking search engines not to add a URL to their index. If the page is already indexed, the bot removes it from the results once it sees the noindex. The page stays accessible to users; it simply doesn't appear in search.

The most common form is a meta tag added to the page's head section:

  • For all bots: <meta name="robots" content="noindex">
  • For Google only: <meta name="googlebot" content="noindex">
  • Noindex and don't follow links: <meta name="robots" content="noindex, nofollow">

The key point is this: for noindex to work, the bot must be able to access the page and read the tag. This detail becomes decisive in the robots.txt section below.

When should you use noindex?

Not every page needs to be in the index. Keeping pages that add no value in search results out of the index helps bots and users focus on your important content. When deciding, ask yourself: "Is this page useful on its own to someone arriving from search?"

Pages suitable for noindex

  • Thank-you and order confirmation pages
  • Internal site search results pages
  • Login, sign-up, cart and account pages
  • Landing pages built for ad campaigns that don't target organic traffic
  • Test, staging and temporary pages
  • Filter and tag pages with very thin or duplicate content

Pages you shouldn't noindex

Don't add noindex to pages that bring in traffic and revenue: the home page, product and category pages, service pages, blog posts. To fix duplicate content issues, consider the canonical tag first; noindex isn't always the right tool.

How does noindex affect SEO?

Noindex doesn't improve rankings; it only removes a page from the results list. Used correctly, it has an indirect benefit: only valuable pages stay in the index, and thin or duplicate pages don't dilute the site's overall quality. Used incorrectly, the impact is harsh. If you accidentally add noindex to a ranking page, the organic traffic from that page disappears as soon as it drops out of the index.

So think of noindex as a "cleanup" tool, but review the affected URLs one by one before applying it in bulk. Template- or plugin-level settings in particular can affect hundreds of pages at once. After every bulk change you make by hand, checking a small sample of pages is a good habit.

How to add noindex with meta robots

The method depends on the platform your site runs on. The general steps are:

  1. List the URLs that will get noindex and write down why each one should stay out.
  2. Add the tag to the page's head section. On WordPress you can do this from the SEO plugin's page settings; on code-based sites, from the template.
  3. Make sure the page isn't blocked by robots.txt.
  4. Open the page in your browser and verify the tag in the source code.
  5. After a few days, check the URL's status in Google Search Console.

If you're looking for a no-code solution, SEOAsist Pixel can apply rules such as title, meta description and canonical without touching your site's code. Before making changes like a robots rule this way, check in the search engines' own documentation how they handle it.

For the official syntax of the tag and all supported values, see Google Search Central's robots meta tag documentation.

Noindex with X-Robots-Tag

You can't use a meta tag on non-HTML files (PDFs, images, videos). In that case, the same directive is sent through the HTTP response header: X-Robots-Tag: noindex. It can be applied to many files at once through server configuration, which makes it practical for large sites. Because server-level settings like this are easy to overlook, check the response header on a real URL after setting it up.

Can you noindex with robots.txt?

Short answer: no. "Robots txt no index" is a popular search because people used to write a Noindex: line in robots.txt. Google doesn't support this line; its official documentation advises against relying on robots.txt to block indexing and recommends using the noindex directive instead.

A Disallow line in robots.txt stops the bot from crawling the page. But if other sites link to the URL, it can still appear in search results even though its content isn't read. Worse, since the bot can't enter the page, it can't see the noindex tag inside it either.

So this combination doesn't work: noindex on the page, and the same page set to Disallow in robots.txt. If you want the page removed from the index, first allow crawling, make sure the bot sees the noindex, and once the page has dropped out of the index, restrict crawling if needed. For what robots.txt is for, Google's introduction to robots.txt is a good starting point.

To check your file quickly, you can use the robots.txt and sitemap checker without signing up.

Noindex vs. robots.txt vs. canonical

MethodWhat it doesWhen to use it
Meta robots noindexKeeps the page out of the indexOn HTML pages, for content you don't want shown in search
X-Robots-TagSends the same directive via the HTTP headerOn non-HTML files such as PDFs and images
Robots.txt DisallowStops the bot from crawling the URLTo manage crawl load; not for index control
CanonicalIndicates the preferred URL among similar pagesFor duplicate or very similar content

Noindex, 404/410 or canonical?

All three methods can keep a URL away from search, but they serve different purposes. To choose the right one, look at what's happening to the page:

  • The page is still needed by users but shouldn't appear in search: noindex.
  • The page no longer exists and won't come back: a 404 or 410 status code.
  • The page is a copy or a near-copy of another page: point to the preferred URL with a canonical.
  • The page has moved: a 301 redirect to the new address.

Don't use noindex and canonical on the same page in a conflicting way. One says "don't index this page," the other says "prefer that page"; the search engine picks which one to follow, and the outcome becomes unpredictable.

The 5 most common noindex mistakes

  1. Using robots.txt and noindex together. The bot can't enter the page, so it can't read the tag.
  2. Forgetting to remove noindex at launch. A tag carried over from staging can wipe out traffic on the live site.
  3. Accidentally adding noindex to an important page. A template or plugin setting can affect an entire group of templates.
  4. Keeping noindexed pages in the sitemap. Only put URLs you want indexed in your sitemap.
  5. Dropping internal links from noindexed pages to important pages. For pages that stay noindexed for a long time, give separate thought to how link equity flows.

How to check that noindex is working

Setting it up isn't enough; you need to verify it. Follow this order:

  • See the directive in the page's source code or response header.
  • Check the page's index status with the URL Inspection tool in Google Search Console.
  • Confirm that robots.txt doesn't block the same URL.
  • Crawl the site regularly; unexpected noindex tags can be caught during a technical SEO audit.

It takes time for search engines to revisit a page; don't expect the page to vanish from the results right after adding noindex. If you want to monitor index status continuously, the index monitoring feature lets you track the indexing decision for your URLs. Change tracking also helps catch unexpected changes to the robots tag.

You can find Google's own explanation of index control in its documentation on blocking indexing with noindex.

A practical checklist

If you work across multiple sites, running the same short list before every release reduces mistakes:

  • Review robots and noindex settings when moving from staging to live.
  • Keep a list of noindexed pages and review it at regular intervals.
  • Verify with regular crawls that important pages don't carry noindex.
  • Log robots.txt changes so you know who changed what, when and why.
  • Remove the pages you've noindexed from the sitemap.

Handling all this by hand can be tiring. SEOAsist crawls your site and doesn't just list the issues: it fixes them through its fix channels (pull request, Pixel, WordPress plugin), and changes go live with the owner's approval. If you like, try it free and see whether your site has any misplaced noindex tags.

Conclusion

Noindex is the right and reliable way to remove a page from search; robots.txt is for managing crawl traffic. Choose the pages to keep out of the index deliberately, apply noindex in a way the bot can see, and always verify the result. A small tag mistake can turn into a major traffic loss, which is why regular checks are essential.

Frequently asked questions

What is a noindex tag and what does it do?

It is a directive that tells search engines not to list a page in their results. The page stays accessible to users; it is only removed from search results.

Can you noindex with robots.txt?

No. Google doesn't support a noindex line in robots.txt. Disallow only blocks crawling; use meta robots or X-Robots-Tag for indexing.

Can I use noindex and robots.txt Disallow on the same page?

Don't. Because Disallow stops the bot from entering the page, the bot can't see the noindex tag and the page may stay in the index.

Are noindex and nofollow the same thing?

No. Noindex asks that the page not be indexed, while nofollow asks that the links on the page not be followed. They can be used together or separately.

How long does it take for a page to drop out of results after noindex?

There is no fixed time. The bot needs to revisit the page and see the tag; this depends on how often the page is crawled.

How do you add noindex to a PDF file?

Since it isn't HTML, a meta tag can't be used. Add an X-Robots-Tag: noindex header to the server response.

Get your first crawl in 5 minutes

Start on the free plan, add your sites, connect Search Console. Bring your team and clients when you are ready.

On our own sites (8), 48 tracked keywords climbed into the top 10.

  • Auto-fix on every site in your plan
  • 14 days free, no card
  • Price fixed for 12 months
  • Fixes stay on your site if you cancel
  • Free setup