SEO Tools
Robots.txt Generator
Build robots.txt with a default rule, blocked and allowed paths, Crawl-delay and a sitemap URL, block AI training crawlers and catch path mistakes as you type.
How to use Robots.txt Generator
Enter the website address, choose the default rule and list paths to block or allow, one per line. Tick Block AI training crawlers if needed, add a Crawl-delay or sitemap URL, then copy the file and publish it at the root of the site.
- Enter the site and default ruleType the website address and choose whether to allow or block the whole site.
- Add paths and optionsList one path per line, and tick the AI crawler and sitemap options you need.
- Publish at the rootCopy the output, save it as robots.txt and upload it to the root of the site.
An example file
The sample produces two rules under User-agent: *, Disallow: /admin/ and Disallow: /search, and ends with Sitemap: https://example.com/sitemap.xml. Adding /admin/help/ as an allowed path puts Allow: /admin/help/ before the Disallow lines, so the help pages inside the blocked folder can still be crawled. Ticking Block AI training crawlers adds a separate group that sends Disallow: / to eight crawlers, including GPTBot, ClaudeBot, CCBot and Google-Extended, without affecting search crawlers such as Googlebot.
Automatic checks and caveats
Paths without a leading slash get one, full URLs on the same site become paths, and URLs from other sites are ignored. If the same path is both allowed and blocked, you are told that Google follows the less restrictive Allow. Crawl-delay accepts 1 to 60 seconds; Google ignores it, while Bing and Yandex respect it. Blocking the whole site writes Disallow: / and pages gradually drop out of search results. robots.txt only instructs crawlers and is no substitute for a login.
Accuracy and data handling
Generated tags and rules must match the real page content and the site's deployment environment. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
Where should robots.txt be published?
At the root of the host name, such as https://example.com/robots.txt, served as plain text. A robots.txt file placed in a subfolder is ignored by crawlers.
Does Disallow protect private content?
No. It only asks well-behaved crawlers not to fetch those URLs, and anyone can still open them directly. Protect private content with a login and access control.
Does blocking AI crawlers affect search rankings?
No. The rules apply only to AI training crawlers such as GPTBot, ClaudeBot and Google-Extended; Googlebot, Bingbot and other search crawlers follow the general rules.
More SEO Tools
Related toolsCheck a page's Open Graph tags, preview its share card and copy corrected tags.
Count word and phrase frequency and measure the density of your target keywords
Measure title tags in pixels and characters and preview where Google may cut them
Check meta description pixel width for desktop and mobile and copy the meta tag
Turn titles into lowercase, hyphenated URL slugs, one per line
Create robots meta tags and X-Robots-Tag headers for any crawler