Skip to main content

Generate Robots.txt with Search Engine & AI Bot Directives

Create a robots.txt file with Disallow paths, a sitemap line, and optional Allow rules for AI crawlers such as GPTBot.

Loading tool…

Your file stays in this browser. Nothing is uploaded.

How Robots.txt Generator works

Browser Toolset Robots.txt Generator writes a robots.txt file in your browser. Add Disallow paths for all crawlers, optionally add Allow blocks for named AI crawlers (GPTBot, ChatGPT-User, ClaudeBot, PerplexityBot, Google-Extended), and declare your sitemap. Robots.txt is advisory, so only well-behaved crawlers follow it.

How to use this tool

  1. Enter your official sitemap XML URL.
  2. Tick or untick the AI crawler option, which adds an Allow: / block for GPTBot, ChatGPT-User, ClaudeBot, PerplexityBot and Google-Extended.
  3. Specify paths to Disallow for all crawlers (e.g., /api/, /admin/, /private/), one per line.
  4. Inspect the live formatted robots.txt preview.
  5. Download your robots.txt file or copy content to clipboard.

Common uses

  • Webmasters configuring crawl rules for new website deployments.
  • SEO specialists drafting Disallow rules to keep crawlers out of low-value paths.
  • Founders stating in robots.txt that named AI crawlers may fetch their site.
  • Developers asking crawlers to stay out of staging environments (use a password or noindex for real protection).

Frequently asked questions

What is a robots.txt file?

Robots.txt is a text file placed in your website root directory that instructs search engine crawlers and web spiders which pages they can or cannot request.

What does the AI crawler option do?

When ticked, the tool adds a separate block with Allow: / for each named AI crawler. That tells those crawlers they may fetch your site, but it does not promise any discovery, ranking or citation. When unticked, those blocks are simply left out; this does not block the bots, and it is not a way to opt out of AI crawling. Note that a crawler with its own block may ignore the Disallow paths in the general block.

Are my internal server paths or sitemaps uploaded anywhere?

No. The robots.txt text is built in your browser from the paths and sitemap URL you type, and those values are not uploaded. Nothing is saved by the page, so use Copy or Download before you close the tab.

Where should the robots.txt file be uploaded?

Save the file as robots.txt in the root of your site so it loads at https://yourdomain.com/robots.txt. Crawlers only look there, not in subfolders. Use Download to get the file, then upload it through your host or deploy process.

Does robots.txt guarantee privacy for private pages?

No. Disallowing a URL in robots.txt tells polite crawlers not to crawl it, but does not prevent direct access; use server authentication for true security.

Details and limits

A misconfigured robots.txt file can stop crawlers from reaching pages you want visible. Our Robots.txt Generator writes a plain directive file with Disallow paths, optional Allow blocks for named AI crawlers, and a sitemap line. Robots.txt is advisory and is not access control.

What the generated file contains

The file is assembled in your browser from three inputs and nothing is uploaded. It always begins with a comment and a User-agent: * group, followed by one Disallow line per path you list, one path per line. Blank lines are skipped, and each path is trimmed but otherwise written exactly as typed, so include the leading slash yourself. The starting values are /api/, /admin/ and /private/, plus this site's own sitemap address, so replace them.

With the AI checkbox ticked, which is the default, a second block adds a User-agent group for each of GPTBot, ChatGPT-User, ClaudeBot, PerplexityBot and Google-Extended, each followed by Allow: /. A Sitemap line with the address you entered ends the file. Leave that field empty and the line is left out.

Features and limits

  • Copy puts the text on the clipboard, and Download saves it as robots.txt in plain text.
  • Only one wildcard group is built. There are no per-bot rules, no Crawl-delay and no Allow lines for specific paths.
  • Unticking the AI box removes that block. It does not block those crawlers, because they then follow the wildcard group like any other bot.
  • A crawler that has its own named group usually follows only that group. The five named bots would therefore be allowed everywhere, including the paths you disallowed under the wildcard. To keep those paths off limits to them too, repeat the Disallow lines inside each block in the downloaded file.
  • Nothing is validated. Patterns with * or $, and a lone / path, are passed through as typed. An empty path list leaves User-agent: * with no rules, which allows crawling of everything.

What robots.txt can and cannot do

A robots.txt file is a request to well-behaved crawlers, not access control. Anyone can read it, so listing /admin/ or /private/ actually points at those paths, and a crawler that ignores the rules can still fetch the pages. Protect sensitive areas with real authentication. Disallowing a page also stops crawlers from reading a noindex tag on it, so it is not a dependable way to remove a page from search results.

Upload the file to the root of the host it applies to, so it answers at /robots.txt. Each subdomain needs its own copy. After publishing, open the address in a browser and confirm it loads as plain text. Whether to allow or restrict AI-related crawlers is your decision, and the file promises no visibility or ranking either way. For page-level tags see the Meta Tag Builder & SEO Preview, and for tagged links the UTM Campaign URL Builder.