Developer and Text Tools

Meta Robots and X-Robots-Tag: Control Indexing, Snippets and Previews

What robots meta tags and X-Robots-Tag headers control, how rules for different crawlers combine, the common conflicts and how to write and test them.

Saizul Amin
Saizul Amin3 Nov 2026 · 4 min read
Meta Robots and X-Robots-Tag: Control Indexing, Snippets and Previews

Search engines follow two separate sets of instructions. robots.txt decides whether a crawler may fetch a URL at all. Once a page has been fetched, page-level rules decide what may happen next: whether it can be indexed, whether its links are followed, how long a text snippet may be, how large an image preview may appear and whether it should leave results after a certain date. Those page-level rules live in the robots meta tag and in the X-Robots-Tag HTTP header.

They are short, easy to copy between templates and easy to get wrong. A stray noindex from a staging environment is one of the most common reasons pages vanish from search.

The directives

The core pair is index or noindex and follow or nofollow. none is shorthand for noindex and nofollow together. Beyond those, nosnippet removes text snippets, max-snippet sets a character limit with -1 meaning no limit, max-image-preview takes none, standard or large, and max-video-preview sets a length in seconds. noimageindex keeps images on the page out of image search, notranslate stops translation links, indexifembedded allows indexing of content embedded through an iframe, and unavailable_after removes a page from results after a date. noarchive is still honoured by Bing, while Google no longer shows cached pages.

Old directives such as noodp and noydir no longer do anything and can be removed.

Meta tag or header

The meta tag sits in the head of an HTML page: name="robots" applies to all crawlers, and a crawler name such as googlebot or bingbot targets one. The X-Robots-Tag header carries the same directives in the HTTP response, optionally prefixed with a crawler name. Headers are the only option for files without a head, such as PDFs, images and office documents, and they are convenient when a server rule is easier to change than templates.

How rules combine

When several rules apply to one crawler, for example a general robots tag and a googlebot tag, search engines combine them and the most restrictive value wins. If the general tag says index and the googlebot tag says noindex, Google will not index the page, while other crawlers may. That is sometimes intended and often a mistake.

Building rules

The Meta Robots and X-Robots-Tag Builder starts with a rule for all crawlers and lets you add overrides for specific ones, including any name you type. Every directive is a switch or a field, and the output updates as you click: meta tags for the head, X-Robots-Tag header lines, or ready-made Apache and Nginx blocks that apply the header to file extensions you choose, such as pdf, docx and xlsx. A table shows the effective result for each crawler, so you can see exactly what a combination of rules means.

Checking a live page

On the check tab, paste the page head and its response headers, copied from the browser's developer tools or a command-line request. The checker collects every robots meta tag and header line, works out which crawler each applies to and shows the combined result per crawler: indexable or not, links followed or not, snippet and preview limits and other directives.

It flags index and noindex in the same rule, follow and nofollow together, unknown directives, limits without numbers, invalid preview values, unreadable or past unavailable_after dates, tags placed in the body, obsolete directives and split results where some crawlers may index the page and others may not. Checked rules can be opened in the builder, fixed and exported again.

An example

A publisher pastes a page that allows indexing with a 160-character snippet and large image previews, plus a googlebot tag with noindex and noodp, and headers that give bingbot nosnippet and set an unavailable_after date at the end of the year. The table shows Google cannot index the page, Bing can but without a snippet, and other crawlers can with the 160-character limit. The checker marks noodp as obsolete and the split as a likely mistake. Removing the googlebot tag makes the page indexable everywhere.

Two traps to avoid

Never block a URL in robots.txt when you want it removed with noindex. A blocked page is never fetched, so its noindex is never read, and the URL can stay in results without a snippet. And check templates after every launch for leftover staging rules.

Limits

The checker reads what you paste. It does not fetch pages or run scripts, so tags added by JavaScript need the rendered HTML. Page-level rules only work for crawlers that choose to follow them.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages