Build, test and check robots.txt
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Opens
TXT- Saves as
TXT- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- One file at a time
- Offline use
- Works without a connection once this page has loaded
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
- Limits
- Opened robots.txt files are limited to 5 MB.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About Robots.txt Generator
Robots.txt Generator builds a robots.txt file from user-agent groups, Allow and Disallow rows, an optional Crawl-delay and Sitemap lines, and tests URLs against the result. Presets fill in allow all, block all or a typical WordPress setup. A separate list of 23 AI crawler tokens, checked against each vendor's own documentation in December 2026, adds a group that blocks AI training crawlers such as GPTBot, ClaudeBot, Google-Extended and CCBot. AI search and user-triggered fetchers are listed with their purpose but left unticked, because blocking them removes your site from those assistants' answers.
The tester takes a URL and a crawler token and says whether that crawler may fetch it, naming the group it used and the rule line that decided. The matching is a port of Google's open-source robots.txt parser and follows RFC 9309: the group that names the crawler beats the * group, groups for the same crawler are merged, the longest pattern wins, Allow wins a tie, and * and $ work as wildcards. A checker lists problems in a pasted or dropped robots.txt with line numbers, such as rules before any User-agent, misspelt directives and relative Sitemap URLs.
Robots.txt Generator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use Robots.txt Generator
- Pick a preset or edit the User-agent groups: add tokens, then add Allow or Disallow rows with paths such as /admin/ or /*.pdf$.
- Choose which AI crawlers to block in the AI crawler list; Training only is the default.
- Enter your sitemap as a full URL, then copy or download robots.txt and upload it to the root of your site.
- Under Test a URL, enter a URL or path and a crawler token such as Googlebot to see whether it is allowed and which line decided.
- To check an existing file, paste it or drop it into Check a robots.txt and read the problems by line.
Frequently asked questions
How does the tester decide whether a URL is allowed?
It first picks the groups whose User-agent matches the crawler token, compared without case and up to the first character that is not a letter, hyphen or underscore. If none match it uses the * groups, and if there are none either, everything is allowed. Among the rules of those groups, the pattern with the most characters that matches the path wins; on a tie Allow wins. A $ at the end anchors the pattern and * matches any run of characters. Googlebot-Image, Googlebot-News and Googlebot-Video are treated as also answering to the Googlebot token, so without a group of their own they follow a Googlebot group; Google's crawler list says some crawlers have more than one token and need to match only one. /robots.txt itself is always allowed.
How was the matcher tested?
The parser and matcher are a line-by-line port of Google's robotstxt library. All 201 checks in its robots_test.cc pass, covering line endings, byte order marks, the 16,663-byte line limit, percent-encoding and Google's own documentation examples. It also gave the same answer as the Python Protego parser on 4,000 random rule and URL combinations. One difference from the library is on purpose: the tester percent-encodes the URL you type, such as non-ASCII letters or spaces, the way a crawler would request it.
Which AI crawlers does the Training only preset block?
GPTBot, ClaudeBot, CCBot, meta-externalagent, Amazonbot and MistralAI-Training, which their vendors describe as collecting data that may be used for training, plus Google-Extended and Applebot-Extended, which do not crawl but control whether Google and Apple may use content fetched by their search crawlers for AI training. Bytespider is included but marked unverified, because ByteDance publishes no page about it. Blocking Google-Extended does not affect Google Search or AI Overviews.
Does blocking a crawler in robots.txt actually stop it?
No. robots.txt is a request that well-behaved crawlers follow. OpenAI, Perplexity, Meta and Amazon state that their user-triggered fetchers may not follow robots.txt, which is why the list marks them. To really keep a bot out, block it on your server, firewall or CDN. Microsoft has no separate AI token; Copilot uses the Bing index.
Why does Crawl-delay have a note saying Google ignores it?
Crawl-delay is not part of RFC 9309. Google ignores the line and sets its crawl rate automatically, while Bing reads it as the number of seconds to wait between requests, and Amazon says Amazonbot does not support it. The checker marks Crawl-delay lines as a note, not an error, and warns when the value is not a number.