SEO ToolsA little help for every day

Search by name or task, such as JSON or percentage.

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.

View all tools
ResultUpdates as you type
User-agent: *
Disallow: /admin/
Disallow: /search

Sitemap: https://example.com/sitemap.xml

2 rules. Save this as robots.txt and publish it at https://example.com/robots.txt (it must be at the root and served as plain text). robots.txt is not access control, so private content still needs a login.

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.

  1. Enter the site and default ruleType the website address and choose whether to allow or block the whole site.
  2. Add paths and optionsList one path per line, and tick the AI crawler and sitemap options you need.
  3. 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.

Often Used Together

Next step

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 tools