Free tool

robots.txt Generator

Generate your robots.txt with per-bot rules, sitemap and AI crawler blocking. 100% in your browser.

Built by

Miguel Ángel Colorado Marin (MACM)

Full-Stack Developer · Guadalajara, España

I develop web apps, digital tools and full projects — from design to deployment.

Contact me

The robots.txt generator creates the file that tells web crawlers which parts of your site they may visit. Choose Allow all or Block all for simple cases, or define rules per User-agent with paths to allow or block. With one click you can tick AI bot presets such as GPTBot, ClaudeBot, CCBot, Google-Extended or PerplexityBot, add your sitemap URL and set a Crawl-delay. The result updates instantly and can be copied or downloaded as robots.txt. It is a request that respectful crawlers follow, not an access barrier.

Features

  • ✓Quick mode: allow or block everything
  • ✓Rules per User-agent with Allow and Disallow paths
  • ✓AI bot presets: GPTBot, ClaudeBot, CCBot, Google-Extended, PerplexityBot and Bytespider
  • ✓Optional Sitemap and Crawl-delay, validated before they are included
  • ✓100% in browser, no uploads

How to generate a robots.txt?

  1. 1

    Choose the mode

    Allow all, block all, or custom rules.

  2. 2

    Add rules if needed

    Paths to allow or block for each User-agent.

  3. 3

    Block AI bots if you want

    Check the AI bots you don't want crawling your site. Googlebot or Bingbot also block search: leave them unchecked if you want to appear in Google or Bing.

  4. 4

    Download the file

    Upload it to your domain's root as /robots.txt.

What each option generates

Allow all writes a single group for User-agent: * with the line Allow: /. Block all writes Disallow: / in that same group and keeps the whole site out of crawling. The custom rules mode creates one group per User-agent you add, with its Allow lines before the Disallow lines. A User-agent without paths produces an empty Disallow: line, which means allow everything.

Each bot ticked in the list gets its own group with Disallow: /, separate from your rules. Crawl-delay goes in the User-agent: * group and the Sitemap line at the end of the file. If Crawl-delay is not a whole number or the Sitemap is not a full http or https URL, the tool warns you and leaves it out.

Paths are written exactly as you type them, except that # is replaced by %23, because # starts a comment in robots.txt. They must start with / or *, and if they do not, a warning lists the affected ones. The wildcards * (any sequence of characters) and $ (end of the URL) can be used inside a path; Google and Bing interpret them.

If the same User-agent has its own rules and is also blocked, the file contains two groups for that bot. The tool warns about this case, because the result may not be what you expect.

What robots.txt cannot guarantee

robots.txt is a public and voluntary file. Crawlers that respect it follow it, but it is not a technical barrier, and anyone can read it on your domain. Do not list private paths in it as if they were secrets: to stop real access you need rules on the server, on the CDN or authentication.

The AI presets only block the User-agent they name. GPTBot is OpenAI's training crawler; ChatGPT-User and OAI-SearchBot are separate tokens and are not covered. Google-Extended controls whether Google uses your content to train models such as Gemini and for its AI features, and it does not affect indexing in Google Search.

Googlebot, Bingbot, Applebot, Yandex and Baiduspider are also in the list. Blocking them removes your pages from those search engines, so leave them unticked if you want to appear there.

Google ignores Crawl-delay. Bing takes it into account, so the value only has effect with crawlers that support it. Everything is generated in your browser from what you type; the tool does not check whether the paths exist or whether the file is published at the root.

Frequently asked questions

Where do I need to upload the file?

At the root of each host: yourdomain.com/robots.txt. A subdomain such as blog.yourdomain.com needs its own file, and at any other path the file has no effect.

Does blocking an AI bot guarantee it won't use my content?

No. robots.txt is a request that respectful crawlers follow voluntarily, not a technical barrier. Blocking GPTBot or Google-Extended states your preference, but to stop real access you need rules on your server or CDN.

Is my site's information uploaded to a server?

No, the file is generated by combining your options directly in your browser.

Does Google respect Crawl-delay?

No. Google ignores the Crawl-delay directive. Bing takes it into account and other crawlers may ignore it too.

Can I use * and $ in paths?

Yes. Write the wildcards as they are inside Allow or Disallow: * matches any sequence of characters and $ marks the end of the URL. Google and Bing interpret them.

Related tools

Embed robots.txt Generator on your site

Add robots.txt Generator to any web page with a simple iframe. Free, with attribution to miguelacm.es.

<iframe
  src="https://miguelacm.es/embed/robots-txt-generator?locale=en"
  width="100%"
  height="700"
  frameborder="0"
  allow="clipboard-write"
  title="robots.txt Generator — miguelacm.es"
></iframe>
View embed in new tab →