Robots.txt Generator & Tester (Free, With AI Crawler Rules)

Free robots.txt generator and tester showing allowed and blocked URLs

Use this free robots.txt generator to create a correct robots.txt file for your website in a minute, then test any URL against it with the built-in robots.txt tester. Choose a WordPress or Blogger preset, add the folders you want to keep crawlers out of, decide whether to block AI training crawlers such as GPTBot or Google-Extended, add your sitemap and download the file. The tester shows whether Googlebot, Bingbot or an AI crawler can crawl a page and which rule decides it.

Robots.txt Generator & Tester

Build a correct robots.txt in a minute, then test any URL against it using Google's matching rules.

Google ignores it; some other crawlers read it.

Blocking a training crawler does not remove your site from Google or Bing search. Blocking a search crawler (OAI-SearchBot, Claude-SearchBot) can remove you from that AI tool's answers.

    Runs in your browser. Nothing you paste is uploaded or stored.

    New to robots.txt? Read our guide How to Create a Robots.txt File: Rules, Examples and Mistakes for a full explanation with examples.

    How to Use the Robots.txt Generator

    1. Pick the default. “Allow crawling” is right for almost every live site. “Block the whole site” is only for staging or development copies.
    2. Choose a preset if you use WordPress (blocks /wp-admin/ but keeps admin-ajax.php open) or Blogger (blocks /search pages).
    3. Add Disallow paths for sections that should not be crawled, one per line, such as /cart/ or /*?sort=. Add Allow exceptions if needed.
    4. Decide on AI crawlers. Tick the training or AI search crawlers you want to block. Each one gets its own group with Disallow: /.
    5. Add your sitemap URL, click Generate, then copy or download the file and upload it to the root of your domain (https://yoursite.com/robots.txt).

    How to Test a Robots.txt File

    1. Open the Tester & validator tab, or click Test this file after generating.
    2. Paste your robots.txt content. To check your live file, open yoursite.com/robots.txt and copy it.
    3. Enter a full URL or a path and choose a crawler, for example Googlebot or GPTBot.
    4. Click Test URL. You see Allowed or Blocked, the group that applies and the exact rule and line number that decided it.

    The tester follows the matching rules in Google’s robots.txt specification: the crawler uses the group with the most specific matching user-agent (otherwise the * group), the longest matching rule wins, and when an Allow and a Disallow rule are equally specific, Allow wins. It supports the * wildcard and the $ end-of-URL marker, and treats paths as case-sensitive.

    What the Validator Checks

    CheckWhy it matters
    Disallow: / for all crawlersBlocks the entire site from every crawler without its own group, a common mistake after a site moves from staging
    Rules before any User-agent lineCrawlers ignore rules that are not inside a group
    Misspelled or unknown fieldsA typo such as Disalow is silently ignored, so the rule never works
    noindex in robots.txtGoogle does not support it; use a robots meta tag or X-Robots-Tag header instead
    Relative Sitemap URLThe Sitemap line must be a full URL with https:// and the domain
    Blocked CSS/JS foldersBlocking /wp-content/ or /wp-includes/ can stop Google from rendering your pages properly
    Crawl-delayGoogle ignores it, although some other crawlers read it
    File size over 500 KiBGoogle ignores everything after the first 500 KiB

    Should You Block AI Crawlers?

    It depends on what you want. Training crawlers collect content that may be used to train AI models; search crawlers fetch pages so an AI assistant can show and link to them in answers. Blocking a training crawler does not remove your pages from Google Search or Bing. For example, Google’s Google-Extended documentation says the Google-Extended token does not affect inclusion or ranking in Google Search.

    TokenCompanyPurpose
    GPTBotOpenAIContent that may be used to train OpenAI models
    OAI-SearchBotOpenAIShowing sites in ChatGPT search results
    Google-ExtendedGoogleUse in Gemini training and grounding outside Google Search
    ClaudeBotAnthropicContent that may be used to train Claude models
    Claude-SearchBotAnthropicIndexing pages to improve Claude’s search results
    CCBotCommon CrawlAn open web dataset that is widely used for research and AI training

    Sources: OpenAI’s crawler overview and Anthropic’s crawler help page. Crawlers that act on a single user request, such as ChatGPT-User, may not follow robots.txt rules in the same way, as OpenAI notes.

    Frequently Asked Questions

    Is this robots.txt generator free?

    Yes. It is free, needs no sign-up and runs entirely in your browser.

    Where do I upload robots.txt?

    To the root of your domain, so it opens at https://yoursite.com/robots.txt. A robots.txt file in a subfolder is ignored. Each subdomain needs its own file.

    Does robots.txt stop a page from appearing in Google?

    Not reliably. It stops crawling, but a blocked URL can still be indexed without its content if other pages link to it. To keep a page out of search results, allow crawling and use a noindex robots meta tag.

    How long does Google take to see changes?

    Google generally caches robots.txt for up to 24 hours, so changes are not instant.

    Can I test my live robots.txt here?

    Yes. Open your live file in a browser tab, copy the text and paste it into the tester. The tool does not fetch other websites itself, which keeps it private and fast.

    More Free SEO Tools

    Leave A Comment

    Scroll to top