Home / SEO & Marketing / Robots.txt Generator

๐Ÿค– Create a Robots.txt File: Generator & Rule Builder

Build a robots.txt with allow and disallow rules, your sitemap and an optional block for AI training crawlers.

100% Private (Runs in Browser)

๐Ÿ’ก Step-by-Step: How to use Robots.txt Generator

  1. Set the user-agent (* means all crawlers), the paths to disallow (one per line) and the allowed path.
  2. Optionally tick 'Also block AI training crawlers' to add a Disallow: / group for GPTBot, ClaudeBot, CCBot, Google-Extended and others.
  3. Add your sitemap URL, check the status line for problems, then copy or download robots.txt.
Robots Rules
Generated robots.txt

            

How In-Browser Robots.txt Generation Works

Robots.txt Generator runs entirely in your browser with JavaScript. There is no sign-up, and whatever you type or open here is processed on your device instead of being sent to a server.

Generate RFC 9309 Robots.txt Rules in Your Browser

Define crawl rules and directory permissions for Googlebot, Bingbot, and other web crawlers directly in browser memory. Built around RFC 9309, it warns when one path is in both Allow and Disallow and leaves out Allow: / next to Disallow: /, but Disallow: / still blocks your whole site, so check the rules before you publish the file.

Robots.txt Examples: What to Enter and What You Get

Each row is a common robots.txt and what to type into the builder to get it. Leave the user-agent at * (every crawler) unless you want rules for one crawler only.

GoalEnter in the builderWhat the file then says
Let every crawler inDisallowed: (empty), Allowed: /Every crawler may fetch every page
Keep a staging site outDisallowed: /, Allowed: /No crawler may fetch anything. Allow: / is left out, because next to Disallow: / it would undo the block
Block one folderDisallowed: /admin/, Allowed: /Everything may be fetched except URLs that start with /admin/
Block every PDFDisallowed: /*.pdf$, Allowed: /No URL ending in .pdf may be fetched: * matches any characters and $ marks the end of the URL
Open one folder inside a blocked oneDisallowed: /private/, Allowed: /private/press//private/press/ may be fetched but the rest of /private/ may not, because the longer rule wins
Keep AI training crawlers outTick 'Also block AI training crawlers'A second group asks the seven AI crawlers listed below not to fetch anything; search engines keep following the rules above

Robots.txt Directives at a Glance

Every line is a field name, a colon and a value. Field names are not case-sensitive, but the paths after them are, so /Admin/ and /admin/ are different folders.

LineWhat it doesGood to know
User-agentStarts a group of rules and names the crawler it is for; * means every crawlerA crawler follows the group that names it, so a crawler with its own group ignores the * group
DisallowAsks crawlers not to fetch URLs that start with the path* matches any characters and $ marks the end of the URL
AllowLets crawlers fetch a path inside a disallowed oneThe longest matching rule wins; when an Allow and a Disallow match equally, Allow wins (RFC 9309)
SitemapGives the full address of your XML sitemapNot part of RFC 9309, but Google and Bing read it; it applies to the whole file, not to one group
Crawl-delayAsks for a pause between requestsNot part of RFC 9309 and ignored by Google; Bing supports it. This builder does not write it

How to Create and Upload Your Robots.txt File

Download the file (it is already named robots.txt and saved as plain text) and upload it to the top folder of your website, often called public_html, so that it opens at https://yourdomain.com/robots.txt. Crawlers only look for it there; a robots.txt in a subfolder is ignored. Each host needs its own file, so a subdomain such as shop.yourdomain.com needs a robots.txt of its own. After uploading, open the address in a browser to check it, then look at the robots.txt report in Google Search Console, which shows the version Google fetched. Google usually refreshes its copy within a day.

Protecting Content from AI Scrapers

Tick 'Also block AI training crawlers' to add a second rule group that asks seven crawlers which collect data for AI models not to fetch anything. Search crawlers such as Googlebot and Bingbot keep following your main rules, so your search listings are not affected. robots.txt is a request: well-behaved crawlers follow it, but it cannot force a crawler out, and it does not remove pages that were collected before. For separate rules per crawler, edit the downloaded file.

AI crawlerRun byBlocking it stops
GPTBotOpenAICollecting pages to train OpenAI's models
ClaudeBotAnthropicCollecting pages to train Anthropic's models
CCBotCommon CrawlAdding pages to Common Crawl's public web archive, which many AI models are trained on
Google-ExtendedGoogleUse of your pages to train and ground Gemini models; Google Search crawling and ranking are not affected
Applebot-ExtendedAppleUse of your pages to train Apple's AI models; Applebot still crawls for Siri and Spotlight
BytespiderByteDanceCrawling by ByteDance's crawler, widely reported to gather training data for its AI models
Meta-ExternalAgentMetaCollecting pages to train Meta's AI models

Automatic Sitemap and Tie-Breaker Validation

Add an absolute sitemap reference and get a warning when the same path is listed under both Allow and Disallow, where crawlers follow Allow. Download your finalized robots.txt file with a single click.

Why processing in your browser matters

Many online tools upload your files or text to a server to process them. This one does the work on your computer or phone, so your data is not sent to us or stored anywhere else. That lowers the risk when you work with confidential material, although you should still follow your organisation's own rules. Read how this works in our Privacy Policy.

  • No uploads: files are opened and saved on your device, so there is no upload or download wait.
  • No account: nothing to sign up for or install.
  • Free to use: no subscriptions or paywalls.

Frequently Asked Questions

Is my site structure or robots.txt configuration logged? +
Where should the robots.txt file be uploaded on a website? +
How do Allow and Disallow tie-breakers work under RFC 9309? +
Can I block AI scrapers without blocking Google search? +
Does a subdomain need its own robots.txt? +
How quickly does Google notice changes to robots.txt? +
Is this tool free without an account? +
Does robots.txt hide pages from Google? +