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

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.
Paste your file. To see your live file, open yoursite.com/robots.txt in a new tab and copy it here.
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
- Pick the default. “Allow crawling” is right for almost every live site. “Block the whole site” is only for staging or development copies.
- Choose a preset if you use WordPress (blocks
/wp-admin/but keepsadmin-ajax.phpopen) or Blogger (blocks/searchpages). - Add Disallow paths for sections that should not be crawled, one per line, such as
/cart/or/*?sort=. Add Allow exceptions if needed. - Decide on AI crawlers. Tick the training or AI search crawlers you want to block. Each one gets its own group with
Disallow: /. - 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
- Open the Tester & validator tab, or click Test this file after generating.
- Paste your robots.txt content. To check your live file, open
yoursite.com/robots.txtand copy it. - Enter a full URL or a path and choose a crawler, for example Googlebot or GPTBot.
- 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
| Check | Why it matters |
|---|---|
Disallow: / for all crawlers | Blocks the entire site from every crawler without its own group, a common mistake after a site moves from staging |
| Rules before any User-agent line | Crawlers ignore rules that are not inside a group |
| Misspelled or unknown fields | A typo such as Disalow is silently ignored, so the rule never works |
noindex in robots.txt | Google does not support it; use a robots meta tag or X-Robots-Tag header instead |
| Relative Sitemap URL | The Sitemap line must be a full URL with https:// and the domain |
| Blocked CSS/JS folders | Blocking /wp-content/ or /wp-includes/ can stop Google from rendering your pages properly |
| Crawl-delay | Google ignores it, although some other crawlers read it |
| File size over 500 KiB | Google 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.
| Token | Company | Purpose |
|---|---|---|
| GPTBot | OpenAI | Content that may be used to train OpenAI models |
| OAI-SearchBot | OpenAI | Showing sites in ChatGPT search results |
| Google-Extended | Use in Gemini training and grounding outside Google Search | |
| ClaudeBot | Anthropic | Content that may be used to train Claude models |
| Claude-SearchBot | Anthropic | Indexing pages to improve Claude’s search results |
| CCBot | Common Crawl | An 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
- XML Sitemap Checker: make sure the sitemap you list in robots.txt is valid.
- llms.txt Generator: create a map of your best content for AI tools.
- Meta SEO Audit Tool: check titles, descriptions and robots meta tags.
- See every tool on our free online SEO tools page.