Generate robots.txt

Generate robots.txt crawler rules and sitemap directives.

Local processing · Nothing is uploaded · 1 MB input limit

Input & settings

Enter the values below. No file is needed.
Ready. Enter your input to begin.

How to use this tool

Enter your own site data. Process and inspect the generated result before adding it to your website.

Limits and behavior

Rules control crawling, not access authorization or index removal. Verify rules on your own server. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.

Robots.txt generator for search engine crawlers

Create robots.txt rules for a website, including crawler directives and sitemap references. This robots.txt creator helps website owners express which URL paths crawlers may request.

Does robots.txt prevent pages from appearing in Google?

Not reliably. Robots.txt controls crawling, not guaranteed search-result removal. Use appropriate index directives or access controls when content must not appear in search.

Example: allow a public folder inside a disallowed directory

Enter user-agent *. Under Disallow paths add /private/; under Allow paths add /private/public/; under Sitemap URLs add https://example.com/sitemap.xml. Inspect the generated file and confirm each rule appears beneath the intended group before saving it as robots.txt.

Expected directive structure
User-agent: *
Disallow: /private/
Allow: /private/public/
Sitemap: https://example.com/sitemap.xml

Three mistakes that lead to indexing surprises

  1. Putting robots.txt anywhere other than the root of the exact host and protocol whose crawlers you want to guide.
  2. Assuming Disallow makes a folder private. Crawlers voluntarily follow the rules; people can still request the URL directly if no authentication is enforced.
  3. Blocking a URL that you need Google to crawl to see a noindex directive. A crawler that cannot fetch a page may not see its robots meta tag.

Test sample paths with Analyze robots.txt rules. A successful rules test is not a live Googlebot simulation or a security audit.

Built on Hatchable