Robots.txt Generator
Pick a preset, add your sitemap and rules for specific crawlers. The robots.txt is generated and re-read by an RFC 9309 parser before you download it.
Privacy and cost
This tool runs in your browser. What you type or paste is not sent to our servers and it costs nothing to use.
How it works
- Choose a starting preset: allow all, block all, WordPress, e-commerce or block AI training crawlers.
- Enter your sitemap URL and, if needed, add a rule group for one crawler (Bingbot, Googlebot-Image, GPTBot…).
- Copy or download the file and upload it to the root of your domain: https://your-domain/robots.txt.
Example
The WordPress preset with the sitemap https://example.com/sitemap.xml outputs 8 directive lines: Allow /wp-admin/admin-ajax.php, five Disallow rules (/wp-admin/, /wp-login.php, /?s=, /search/, /*?replytocom=) and the Sitemap line. The built-in parser reports no error.
What the result means
robots.txt tells crawlers which URLs they may crawl. It is not a security tool and not a way to deindex pages: a blocked URL can still be indexed if other sites link to it. To keep a page out of results, leave it crawlable and use noindex. Only crawlers that follow the protocol obey it.
Common problems this tool helps with
- A forgotten "Disallow: /" after a launch blocks the whole site for search engines.
- A misspelled directive or a path without a leading slash is silently ignored.
- Blocking CSS and JavaScript folders stops Google from rendering your pages properly.
- Trying to block AI crawlers without knowing their exact user-agent names.
Frequently asked questions
Where does robots.txt go?
At the root of the host, for example https://example.com/robots.txt. Each subdomain and each protocol has its own file, and it does not apply to subfolders.
Does blocking GPTBot or ClaudeBot stop AI training?
It is a request to crawlers that respect robots.txt. It does not affect crawlers that ignore it or data already collected. The tool's AI preset blocks training crawlers only and leaves Google and Bing untouched.
Can robots.txt remove a page from Google?
No. It controls crawling, not indexing. To remove a page, keep it crawlable and add a meta robots noindex tag or an X-Robots-Tag header.
Related tools
- Robots.txt CheckerPaste your file or enter a domain. The tool applies the RFC 9309 rules, flags errors and tells you whether a given crawler may fetch a URL.Free · no account needed
- XML Sitemap GeneratorPaste your URLs, one per line: the tool outputs a valid, correctly escaped sitemap.xml and splits it with an index if you go over the limits.Free · runs in your browser
- Meta Robots GeneratorTick the directives you need: the tool outputs the meta robots tag, the X-Robots-Tag header and the matching Apache and Nginx snippets.Free · runs in your browser
- XML Sitemap ValidatorEnter the sitemap address or paste its XML: the tool checks the structure, the limits and every value, and works out how many files you need.Free · no account needed
- Canonical Tag GeneratorPaste a page URL: the tool cleans it (https, tracking parameters, fragment, index file, trailing slash) and outputs the canonical tag and the HTTP header.Free · runs in your browser
- AI Crawler Access CheckerEnter a site: the tool reads its robots.txt and shows, for each known AI crawler, whether it may crawl, which line decides, and what the crawler is for: training, search or a user action.Free account · 3 live checks/day