Free tool
Free robots.txt Tester and Generator
Test any page against a live site's robots.txt, or paste a file. For Googlebot, Bingbot and 19 AI bots you get allowed or blocked, the exact rule and line that decided it, and any Content-Signal values. Then build a new robots.txt with the same bot lists and copy it.
Ticked bots are allowed. Untick a bot to block it from the whole site.
Upload it to the root of your site so it opens at yoursite.com/robots.txt. robots.txt asks crawlers to stay out; it is not access control, so don’t use it to hide private pages.
Last updated
About the robots.txt tester and generator
A robots.txt file tells crawlers which paths they may fetch. The rules are simple on their own and confusing together: several groups, Allow and Disallow lines that overlap, wildcards, and a blanket User-agent: * group that a named bot ignores once it has its own group. This tool applies Google's matching rules to the file and shows which single rule decided the result for each bot, with its line number, so you can see why a page is blocked rather than guess. The generator writes a file from the same bot lists the Half Dev scans use, and you can send it straight back to the tester before you publish it.
How it works
- Choose a live page (we fetch that site's robots.txt and test the page's path) or paste a robots.txt and a path. Then pick one bot, or leave it on all bots to test Googlebot, Bingbot, the AI search and assistant bots and the AI training bots together.
- Each bot follows one group: every group that names it, merged, or, only when no group names it, the User-agent: * groups. Within that group the longest matching rule wins, and Allow wins a tie. * matches any run of characters and a final $ means the end of the path.
- The result shows allowed or blocked, the rule that decided it with its line number, which group applied, and the other rules that matched but lost. Content-Signal lines are listed with a plain-English meaning.
- To build a file, tick the bots you want to let in, untick the ones to block, add paths, a Content-Signal choice and your sitemap URL. The preview updates as you type, and “Test this file” runs it through the tester. Nothing you enter or paste is stored.
How to read the result
“✓ Allowed” means the rules that apply to that bot do not stop it fetching the path. “✕ Blocked” means a Disallow rule won. The deciding rule is the one that settled it, shown with its line number. If it says no rule matches, the bot is allowed by default, because robots.txt only lists what to keep out.
Group used tells you which part of the file applied. A bot with its own User-agent group ignores the User-agent: * group completely, so a Disallow under * does not reach it. This is the most common reason a bot is allowed when you expected it to be blocked, and the reverse.
Content-Signal lines (search, ai-input, ai-train) state how content may be used. They are preferences, not access rules, and they never change the allowed or blocked result.
If the robots.txt could not be read (a timeout, HTTP 403, 429 or 5xx, or a web page instead of a file), the tool says so and shows no result. A file we could not read is not the same as an allowed page. A site with no robots.txt (HTTP 404) lets every crawler fetch everything.
Who it's for
- A site owner finds out why a page is not being crawled and sees the exact line responsible.
- An SEO checks that a new Disallow rule blocks the folder it should and nothing else, before it goes live.
- A publisher decides whether to let AI search bots in while blocking AI training bots, and generates the file.
- A link builder confirms that robots.txt does not keep Googlebot away from the page a link was placed on.
What this tool does not do
- robots.txt controls crawling, not indexing. A blocked page can still appear in search results if other pages link to it, without a description. To keep a page out of results, use a noindex tag and leave the page crawlable so the tag can be seen.
- It is a request, not access control. Well-behaved crawlers follow it; others do not. Some vendors say bots that fetch a page when a person asks may not follow robots.txt, so check each vendor's documentation. Never use robots.txt to hide private pages.
- A bot is matched by its exact user-agent token. Google's specialty crawlers (Googlebot-Image, for example) have their own fallback rules, which this tool does not apply; test Googlebot for those.
- Rules are matched against the path as written. Percent-encoded and unencoded forms of the same character can behave differently in a real crawler.
- In live mode we fetch the file from our servers. A site that serves a different file to different visitors, or blocks our request, can give a different answer to the one a bot sees. Paste the file if you want to be sure.
- Only the first 500 KiB of a file is tested, which is the limit Google reads. Each subdomain has its own robots.txt.
- No AI company has promised that following or ignoring any rule here changes what its product shows. The generator writes what you choose; it does not predict results.
- A limited number of tests per connection every few minutes, to keep the tool free for everyone.
FAQ
It takes a page (or a pasted robots.txt and a path) and shows, for Googlebot, Bingbot and 19 AI bots, whether the path is allowed or blocked, the exact rule and line that decided it, and any Content-Signal values.
The longest matching pattern wins. If an Allow and a Disallow match with the same length, Allow wins. A * matches any run of characters and a $ at the end means the end of the path. The tester applies exactly that order.
A bot that has its own group follows only that group and ignores the User-agent: * group. If you have a group named for the bot with no Disallow rules, the bot is allowed. Move the rule into the bot's group, or remove its group so * applies.
No. It stops crawling. A blocked URL can still be listed if other pages link to it. Use a noindex tag to keep a page out of results, and do not block that page in robots.txt, or the tag will never be seen.
It tests 9 AI search and assistant bots, which fetch pages to answer people's questions, and 10 AI training bots, which collect content to train models. You can block the training bots and still let the search bots in. The scans use the same lists.
It is a line such as Content-Signal: search=yes, ai-input=no, ai-train=no that states how content may be used: search, as input to AI answers, or for training. It is a preference, not an access rule, and a crawler can ignore it. Some hosting providers add it to the robots.txt they manage.
It follows the standard format that Google and other major crawlers read. Upload it to the root of your site so it opens at yoursite.com/robots.txt, then use “Test this file” and check the paths you care about. Some platforms generate robots.txt for you; check how yours does it first.
No. A pasted file or address is used to run the test and the result is sent back to your browser. Nothing you enter is stored.
Related
Tools: Free AI Crawler Checker (GPTBot, ClaudeBot & more) · Free GEO Checker (llms.txt & FAQ Schema) · Free Backlink Checker: Is Your Link Still Live? · Free AI Bot Log Analyzer for Apache, Nginx and Cloudflare