robots.txt Generator
Build a basic robots.txt file from a few toggles: an explicit allow line, disallowed paths, optional blocking of five named AI crawlers, and a sitemap reference. The output is shown as text for you to copy into a file named robots.txt.
User-agent: * Allow: / Disallow: /admin/ Disallow: /api/ Sitemap: https://example.com/sitemap.xml
How to use this tool
- 1
Tick 'Allow all standard crawlers' to add an explicit Allow: / line, or untick it to leave it out.
- 2
Enter the paths you want crawlers to skip in the disallowed box, one per line (for example /admin/ or /api/).
- 3
Optionally tick 'Block AI training crawlers' to add Disallow rules for GPTBot, ClaudeBot, PerplexityBot, CCBot and Google-Extended, and paste your sitemap URL.
- 4
Select the generated text in the preview box, copy it, and save it as a file named robots.txt at your domain root.
What does a robots.txt file actually control?
robots.txt is a plain-text file served from your domain root that tells web crawlers which URL paths they may request. It follows the Robots Exclusion Protocol, standardized as RFC 9309 in 2022, using User-agent lines to name a crawler and Disallow / Allow lines to grant or deny path prefixes. Compliance is voluntary: reputable crawlers like Googlebot read and obey it, but nothing forces a misbehaving bot to honor it. The crucial gotcha is that robots.txt controls crawling, not indexing. If you Disallow a page but other sites link to it, Google may still index the URL and list it in results with 'no information is available for this page.' To truly keep a page out of search, let it be crawled and add a noindex meta tag or X-Robots-Tag header instead. This tool builds the file by simple string assembly: a single User-agent: * group, your typed Disallow lines verbatim, optional per-bot blocks, and a Sitemap line. It does no validation, so whatever you type is pasted as-is.
Common use cases
Keeping crawlers out of admin, API, or internal paths like /admin/ and /api/ while leaving the rest of the site open.
Generating a starter robots.txt for a brand-new site that does not have one yet.
Blocking the five named AI training crawlers (GPTBot, ClaudeBot, PerplexityBot, CCBot, Google-Extended) so your content is not scraped for model training.
Adding or correcting the Sitemap: line so search engines can discover your sitemap.xml.
Drafting rules quickly to paste into a CMS or static-site config, then hand-editing for anything advanced.
Teaching teammates what a minimal, readable robots.txt looks like before they edit the real one.
Frequently asked questions
Is my input uploaded anywhere?▼
Where should I put the robots.txt file?▼
Does this validate my rules or guarantee they are correct?▼
Will a Disallow rule hide a page from Google search?▼
Which AI crawlers does the block option cover?▼
Can I write wildcard, crawl-delay, or per-search-engine rules here?▼
Should I block AI crawlers?▼
Related tools
Password Generator
Generate secure random passwords.
WordPress Username Generator
Generate secure WordPress usernames.
Domain Name Generator
Generate available-looking domain name ideas.
Business Name Generator
Generate brandable business name ideas.
URL Slug Generator
Convert text to URL-friendly slugs.
Lorem Ipsum Generator
Generate placeholder text in paragraphs, words, or bytes.