Zahid Awais Get a free audit

Free meta robots tag generator

Pick your indexing and snippet rules and get the meta tag plus X-Robots-Tag server code.

By Zahid Awais · Technical SEO tools · Free, private, no sign-up

Result
    Meta Robots Tag Generator: what it does and an example result

    The free meta robots tag generator runs in your browser, needs no sign-up and never sends what you type anywhere.

    Quick answer

    This meta robots tag generator builds the robots meta tag and matching X-Robots-Tag header from the directives you tick, such as noindex, nofollow, max-snippet and max-image-preview. Key rule: the page must not be blocked in robots.txt, or Google never sees the tag, and use noindex rather than robots.txt to keep pages out of search.

    What is a meta robots tag generator?

    A meta robots tag generator is a tool that writes the meta name="robots" element and the equivalent X-Robots-Tag HTTP header that control indexing and snippets. It joins the chosen directives into one comma separated list, optionally scoped to one crawler such as googlebot, and adds Apache and Nginx snippets for non-HTML files like PDFs.

    How do you use the Meta Robots Tag Generator?

    How to use the Meta Robots Tag Generator: enter details, see the result and copy it
    Real screenshot of the Meta Robots Tag Generator with the steps marked.
    1. Choose which crawler the rules apply to: all robots, or a single one such as googlebot.
    2. Tick the directives you need, such as noindex for thin pages or nofollow for untrusted links.
    3. Set optional snippet controls: max-snippet, max-image-preview and max-video-preview.
    4. Copy the meta tag into the head of the page, or use the header code for PDFs and other files.
    5. Check the live page with the URL Inspection tool in Search Console to confirm Google sees it.

    How do I stop Google from indexing a page?

    Add <meta name="robots" content="noindex"> to the head, or send an X-Robots-Tag: noindex header, and make sure the URL is not blocked in robots.txt. Google must crawl the page to see the rule, so a robots.txt block hides it. Details are in Google's guide to blocking indexing with noindex.

    Does Google still support noarchive?

    No, Google Search ignores noarchive because the cached page link no longer exists. It is harmless to keep for other search engines that still offer a cache. Google also ignores nocache, so neither affects how your page appears in Google.

    What does max-image-preview:large do?

    max-image-preview:large allows Google to show a large image preview from your page, for example in Discover and image rich results. The other values are standard and none. Many publishers set large because bigger previews tend to attract more clicks.

    Quick reference

    DirectiveWhat it doesTypical use
    noindexKeeps the page out of search resultsThank you pages, internal search, thin tag pages
    nofollowTells Google not to follow links on the pagePages full of user submitted links
    noneSame as noindex, nofollowPrivate utility pages
    nosnippetNo text snippet or video preview in resultsPaywalled or sensitive text
    max-snippet:[n]Caps the text snippet at n characters; -1 means no limitControl snippet length
    unavailable_after:[date]Stops showing the page after a dateEvents and time limited offers

    Worked example

    Example

    Example: for a PDF price list that should drop out of Google, tick noindex, clear the three snippet fields and choose PDF files. The tool outputs Header set X-Robots-Tag "noindex" inside a FilesMatch block for .pdf files, because PDFs have no head section for a meta tag.

    Frequently asked questions

    What is the difference between meta robots and X-Robots-Tag?

    They support the same directives. The meta robots tag sits in the HTML head, so it only works for HTML pages. X-Robots-Tag is an HTTP response header, so it also works for PDFs, images and other files, and can be applied site wide in server config.

    Do I need index, follow in my robots meta tag?

    No. Index and follow are the defaults, so adding them has no effect. You only need a robots meta tag when you want to restrict something, such as noindex, or set snippet controls like max-image-preview:large. Leaving it out is perfectly fine.

    What happens if robots directives conflict?

    Google applies the more restrictive rule. For example, if one tag says max-snippet:50 and another says nosnippet, nosnippet wins. Conflicts often come from a theme and an SEO plugin both printing robots tags, so check the final HTML for duplicates.

    Can I target only Googlebot with a meta tag?

    Yes. Use name="googlebot" instead of name="robots" and only Google follows it. For headers, prefix the rule with the user agent, such as X-Robots-Tag: googlebot: noindex. Other crawlers will ignore rules aimed at Googlebot.

    Should I noindex pagination or category pages?

    Usually not. Paginated and category pages help Google discover products and articles, so noindexing them can cut off crawl paths over time. Noindex thin pages with no unique value instead, such as internal search results or empty tag archives.

    Is this generator free to use?

    Yes, it is free with no sign up. Everything runs in your browser and nothing you select is sent to a server. Copy the code into your theme, SEO plugin settings or server config, then test the live URL.

    Sources

    Facts checked against these official pages. Read how I check facts in my editorial policy.

    Related free tools

    All 104 tools

    Robots.txt Generator

    A robots.txt generator is a tool that writes the plain text file crawlers read at the root of your site…

    Canonical Tag Generator

    A canonical tag generator is a tool that builds the link rel="canonical" element telling search engines which…

    Htaccess Generator

    An htaccess generator is a tool that writes per directory Apache configuration so you do not have to remember…

    Want a full audit instead?

    Send your website and I will check it for you, free.

    Get my free audit
    Chat on WhatsApp
    Free updates

    Get new tools, guides and coupons first

    One short email when something new goes live: articles, free SEO tools, package updates, discounts and price alerts. No spam, unsubscribe in one click.