Choose a robots meta element for HTML pages you control and an X-Robots-Tag response header for non-HTML resources or deployments where headers are the more reliable channel.

A sound meta robots workflow separates three decisions: where the rule will be delivered, which crawler it should target, and which indexing or presentation restrictions it should contain. The Meta Robots Generator turns one validated set of choices into equivalent HTML and HTTP syntax. Generation happens locally without contacting a search service, but the generated directive still has to be deployed correctly and remain reachable by the intended crawler.

how do i choose the right approach to generate meta robots when using meta robots meta robots tag generator
How to Choose the Right Meta Robots Tag Generator Approach

Separate the delivery method, crawler target, and policy

Starting with the resource policy prevents a technically valid tag from expressing the wrong intention. Decide whether the rule should govern general search crawling, Google’s text results, or Googlebot News. Then decide which restrictions are actually required, such as preventing indexing, asking crawlers not to follow links, or limiting a preview.

A robots meta element or X-Robots-Tag header is a crawler instruction, not an access control.

Selected target HTML meta name HTTP header format Best fit
General search crawlers robots Unqualified X-Robots-Tag A general policy intended for search crawlers as a group
Googlebot text results googlebot User agent prefixed in the header value A rule intended specifically for Google’s text results
Googlebot News googlebot-news User agent prefixed in the header value A rule intended specifically for Googlebot News

The interface is deliberately focused on these three targets; other crawler names and vendor-specific behavior are outside its scope. Google-specific rules can also be interpreted differently by other search engines. If broad and crawler-specific declarations coexist, conflicting restrictions are combined, with the more restrictive rule taking precedence.

Select the channel that matches the resource

The HTML meta element belongs on an HTML page whose markup you can control. Place the generated element in the document metadata through your template, CMS, or page builder. The HTML meta element specification provides the underlying element definition.

An X-Robots-Tag response header is the better choice for non-HTML resources such as PDFs, images, or video, or when server, application, or CDN configuration gives you more reliable control. A server or CDN must actually return the header. Pasting displayed header text into ordinary page content has no effect.

Resource or deployment Recommended channel Reason
HTML page with editable markup HTML meta element The directive can be placed directly in the page metadata
PDF, image, video, or other non-HTML resource X-Robots-Tag header The response header applies to the resource independently of its file format
HTML deployment with dependable header controls X-Robots-Tag header Header management can centralize rules across responses

The generator serializes the same policy as both formats so you can compare them, but you should deploy only the channel that matches the resource. Generating both does not require installing both. Extra copies can create confusion or unintended restrictions if another system already emits a directive.

Turn the intended outcome into directives

Use one directive for one clear outcome, and review the combinations before deployment. Google’s robots meta tag specifications distinguish page-level indexing controls from snippet, image, video, translation, and embedded-content instructions.

Directive What it requests Important constraint
index Allows eligible content to be indexed A separate noindex restriction can override this permission
follow Allows links on the page to be followed It does not itself make the page indexable
noindex Requests that the page or resource not appear in search results The crawler must be allowed to fetch the resource
nofollow Requests that links on the page not be followed It controls link following, not page indexing
nosnippet Requests that Google not show a text snippet or video preview It also prevents direct use of the content as input for AI Overviews and AI Mode, although a static image thumbnail may remain
max-snippet Limits the number of characters in a textual snippet Accepts -1 or a non-negative whole number; zero is equivalent to no snippet, while -1 lets Google choose an effective length
max-video-preview Limits a video preview by duration in seconds Zero permits at most a static image under the image rule, and -1 means no duration limit
max-image-preview Controls the permitted image preview size The documented settings are none, standard, and large
noimageindex Asks Google not to index images on the page It does not remove the page itself from the index
notranslate Asks Google not to offer a translated title and snippet It is a Google-specific presentation request
indexifembedded Allows content to be indexed when embedded through an iframe or similar element despite noindex Google says it has an effect only when accompanied by noindex

The generator does not emit nosnippet together with a numeric max-snippet value because the more restrictive nosnippet instruction would make the numeric choice misleading. It also enforces the dependency between indexifembedded and noindex. Malformed numeric inputs, including non-integers and values below the documented minimum, are rejected instead of being copied into a rule that Google would ignore.

Do not expect every familiar directive to appear in the interface. Noarchive is omitted because Google lists it as historical and unused after the cached-link feature disappeared. Unavailable_after is also omitted because correct date-time formatting, time zones, and publication workflows require more context than a generic form can safely infer.

Generate and deploy the selected rule

  1. Inventory existing directives. Check the page source, response headers, CMS settings, SEO plugins, reverse proxy, and CDN configuration. A directive added by one layer can conflict with a new rule added by another.
  2. Confirm crawl access. Decide whether the intended crawler can fetch the resource. A robots meta element or X-Robots-Tag header cannot be applied if the crawler is prevented from retrieving the response.
  3. Select the appropriate target. Choose general crawlers, Googlebot for text results, or Googlebot News. Match the selection to the service affected by the rule rather than using a Google-specific target as a generic label.
  4. Add only the necessary restrictions. Choose the intended indexing, following, and preview options. Review numeric limits and dependencies, especially the indexifembedded and noindex relationship.
  5. Generate the exact syntax. Use the Meta Robots Generator to produce the HTML meta element and equivalent HTTP header from the same choices. Copy the selected output directly instead of reconstructing the directive by hand.
  6. Deploy it through the correct channel. Add the element to an HTML page’s metadata, or configure the header through the web server, application, or CDN. Do not insert an X-Robots-Tag string into visible page content.
  7. Inspect the public response. Fetch the public URL as the intended crawler can access it. Review both the delivered source and actual HTTP headers, looking for duplicate, crawler-specific, or contradictory declarations.
  8. Keep the directive active until processing occurs. Retain the rule while the search engine recrawls the resource and confirm that the deployed response still contains the intended policy. The engine controls its own crawl schedule.

Check the response for crawlability and conflicts

Deployment is not finished when the editor displays the tag. The delivered page must expose the same directive to a crawler. Inspect the delivered source and actual HTTP headers for duplicate or conflicting rules until recrawling occurs.

If robots.txt disallows crawling, Google may never see a noindex directive. The URL can remain known through external links without the page content being processed. To remove an accessible page from results, permit crawling and serve the directive until the search engine processes it.

When multiple meta elements, HTTP headers, or crawler-specific declarations apply to the same resource, their restrictions are combined and the more restrictive instruction wins. Inspecting the public response is therefore more reliable than checking only a CMS field. Search engines also process changes on their own schedules, and other engines may interpret Google-specific directives differently.

Understand what the generated directive cannot guarantee

Meta robots rules are crawler instructions, not access controls. A noindex directive does not make a URL private: anyone who knows it can still request the content, and a crawler that ignores the rule may still process it. Sensitive information must be protected with authentication and authorization rather than metadata.

Preview directives also have boundaries. Google notes that separately granted permission through structured data, AMP relationships, or licensing can supersede certain preview limits, so a generated string is not a universal content-use switch. The generator guarantees exact syntax from the selected options; it cannot guarantee deindexing, processing time, or a particular search-result presentation.

If you're weighing options, Meta Tag Generator on Android: A Mobile Workflow covers this in detail.

If you're weighing options, robots.txt Generator on iPhone: Mobile Publishing Workflow covers this in detail.