Search Engine Basics

What Is a Noindex Tag? How to Keep Pages Out of Google

A noindex tag tells search engines not to show a page in their results. This guide explains how the tag works, when to use it, then shows the one mistake that stops it from working at all.

Updated 26 Oct 20268 min readChecked against Google Search Central
Quick answer

Noindex is a rule you add with a meta robots tag, such as <meta name="robots" content="noindex">, or with an X-Robots-Tag HTTP header. When Google crawls the page and sees it, Google drops the page from search results. The page must stay crawlable, or Google never sees the rule.

Usman AliWritten by Usman AliGrowth and SEO specialist · 7 years in SEO

The basics

What Does Noindex Mean, in Plain Words

Noindex is like a note on a page that says: you may read me, but please do not list me.

Search engines index almost every page they can reach. That is usually what you want. Some pages, though, have no value in search. A thank-you page after a form, a login screen or a thin tag archive only adds clutter.

The noindex rule removes those pages from results. Visitors can still open them through your menus or links. Only search listings change. It is one of the main tools in search engine indexing control, together with the canonical tag.

Meta robots tag

Inside the page

A line in the head of an HTML page. This is the easiest method, and most SEO plugins add it with one click.

X-Robots-Tag header

Sent by the server

A rule in the HTTP response. Use it for files without a head section, such as PDFs or images.

See the code

Noindex Tag Examples You Can Copy

Pick the version that matches the file type. Each one does the same job.

All search engines

<meta name="robots" content="noindex">

Google only

<meta name="googlebot" content="noindex">

Noindex and stop following links

<meta name="robots" content="noindex, nofollow">

PDF or image (HTTP header)

X-Robots-Tag: noindex

In WordPress, you rarely write this code yourself. SEO plugins let you set noindex for a single post, or for whole groups such as tag pages. Under Settings, then Reading, the box called Discourage search engines adds noindex to the entire site.

Use it wisely

When to Noindex a Page and When Not To

A good rule: noindex pages a searcher would never want to land on from Google.

Page typeNoindex it?Why
Thank-you or order confirmationYesUseless without the action before it
Login, account or cart pagesYesPrivate, with no search value
Internal search resultsYesEndless thin pages with mixed content
Thin tag or author archivesUsuallyOften duplicate your real posts
Staging or test sitesYesShould never compete with the live site
Duplicate page versionsNoUse a canonical tag instead
Old pages that movedNoUse a 301 redirect instead

The big mistake

Noindex vs Robots.txt: Never Use Both

This is the most common noindex error. It feels safe to block a page twice, yet it actually breaks the rule.

01You block itRobots.txt says Disallow for the page.
02Google stays outGooglebot never opens the page, so it never reads the noindex tag.
03It can still showLinks from other sites keep the URL in results, often with no description.

The fix is simple. Remove the Disallow rule, then let Google crawl the page so it sees the noindex. Once the page has left the index, you can leave it like that. Our robots.txt guide explains why the file controls crawling, not indexing.

Real-world case

The Checkbox That Hides a Whole Website

Case study

Our own site was built behind a noindex

While we built searchenginebasics.tech, the WordPress setting Discourage search engines stayed switched on. That one checkbox adds a noindex rule to every page. It kept unfinished drafts out of Google while the guides were written.

  • Build phaseEvery page carries noindex. Google can visit, yet nothing appears in results.
  • The riskMany sites launch, then forget the box. Months later they wonder why traffic never arrives.
  • Launch dayUntick the box, check a page source for noindex, then submit the sitemap.
  • After launchUse URL Inspection on key pages to confirm indexing is allowed.

Lesson: add a launch checklist step that confirms noindex is gone from every page you want found.

Step by step

How to Check a Noindex Tag

Use these checks before launch, or whenever a page vanishes from search.

01View sourcePress Ctrl+U, then search the code for noindex.
02Check headersLook for X-Robots-Tag in the browser network panel.
03URL InspectionSearch Console shows if indexing is allowed.
04Indexing reportFind every page marked Excluded by noindex tag.

Go through the Excluded by noindex list carefully. Every page there should be one you chose to hide. If you spot an important page, remove the tag, then request indexing. Our guide to checking if a page is indexed covers these reports step by step.

FAQ

Questions About Noindex

How long does noindex take to work?

The page drops out after Google next crawls it. That can take a few days or several weeks. Requesting indexing in Search Console can speed up the visit.

Does noindex stop Google from crawling?

No. Google still crawls noindex pages, although it tends to visit them less often over time.

Can I use noindex in robots.txt?

No. Google stopped supporting noindex inside robots.txt in September 2019. Put the rule in a meta tag or an HTTP header instead.

Do links on a noindex page still count?

At first, Google still follows them. Google has said that pages left on noindex for a long time may eventually be treated like nofollow, so their links stop helping.

Is noindex bad for SEO?

No. Using it on thin or private pages helps search engines focus on your best content. It only hurts when it lands on a page you want to rank.

Wrapping up

Final Thoughts on Noindex

The noindex tag is a small line with a lot of power. Used well, it keeps thin, private or test pages out of search. That lets your best pages stand out. Used carelessly, it can make a whole site disappear from Google.

Keep three rules in mind. First, put noindex only on pages a searcher would never want to find. Second, never block those same pages in robots.txt, because Google must crawl a page to see the tag. Third, check your Excluded by noindex report after every launch or redesign. Pair noindex with canonical tags for duplicates, plus redirects for moved pages. With those tools working together, you decide exactly what Google shows.

Scroll to Top