Robots.txt Generator
Assemble a robots.txt from a preset and your own crawl rules, then copy it straight into your site root.
What this tool does
Robots.txt Generator builds the file line by line from two things: a preset you choose, and a list of paths you type. The presets carry rules that are tedious to remember — the WordPress one disallows /wp-admin/, /wp-login.php, /xmlrpc.php and the internal search and trackback paths while explicitly allowing /wp-admin/admin-ajax.php and /wp-content/uploads/, and the e-commerce one covers /cart, /checkout, /account and the ?sort= and ?filter= query patterns that turn a faceted catalogue into millions of crawlable permutations. Whatever you add is merged with the preset, duplicates are dropped, and the result is one User-agent group with the Allow lines above the Disallow lines. When nothing is disallowed it writes a bare "Disallow:", which is the correct way to say that everything is permitted.
Four settings sit around that group. The user-agent field takes a single token — * by default, or a name such as Googlebot — and is rejected if it contains a space. Sitemap URLs have to be absolute, and several can be given at once separated by spaces or commas. The crawl-delay field runs from 0 to 3600 seconds and the line is dropped entirely at 0; it is worth knowing that Google has never obeyed that directive and that Bing is now the main crawler that still reads it. The two checkboxes append fully blocked groups: one covers twenty named AI training and answer crawlers, including GPTBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot and Bytespider, and the other covers ten backlink crawlers such as AhrefsBot, SemrushBot and MJ12bot. Those blocks only work on crawlers that send the name they are matched against and choose to honour the file.
Everything happens in this browser tab, so nothing is uploaded and the tool works with the network disconnected. The limits are worth stating flatly. robots.txt is a crawling instruction, not access control: a disallowed URL can still be listed in search results as a bare link, and anyone who knows the address can still open it — which is exactly why the file is a poor way to hide a staging site. The generator writes one set of rules for the user-agent you name, plus the all-or-nothing blocked groups, so genuinely different path rules for two different crawlers mean running it twice and joining the groups by hand. And it never fetches your site, so it cannot tell you whether a path you typed exists, or warn you that you have just blocked the CSS and JavaScript Google needs to render your pages. It also does not spot a collision between its own two halves: name GPTBot as the main user-agent while the AI checkbox is ticked and the file ends up with two GPTBot groups, one carrying your paths and one saying Disallow: /, with nothing on screen pointing that out.
How to use it
- Choose a starting point. Custom, Allow everything, Block everything (staging), WordPress, E-commerce, or Docs / marketing site. The preset's paths are loaded first and anything you type is added to them.
- List your own paths. One per line. Each must begin with / or *, and a leading ! turns that line into an Allow instead of a Disallow. Lines starting with # are ignored, and a pasted "Disallow: /x" or "Allow: /x" prefix is stripped for you.
- Set the user-agent and sitemap. Leave the user-agent as * to address every crawler, or name one. Sitemap URLs must be absolute, such as https://example.com/sitemap.xml; list several separated by spaces or commas.
- Decide on crawl-delay and the block lists. Leave crawl-delay at 0 to omit the line. Tick either checkbox to append a Disallow: / group for every AI crawler or every backlink crawler on the list.
- Read the warnings, then copy. A Before you publish list flags the risky combinations — the staging block still in place, a missing Sitemap line, or a named user-agent that leaves every other crawler ungoverned. Copy output puts the plain text on the clipboard.
Processing & privacy
Runs on your device. Your file is processed directly in this browser.
Common use cases
Stopping a shop from burning crawl budget on filters
The e-commerce preset disallows the cart, checkout and account paths together with the sort, filter and add-to-cart query strings, so crawlers spend their time on product pages instead of colour-and-size combinations.
Tidying a WordPress install
The preset blocks the admin and login paths without breaking anything, because it keeps admin-ajax.php and the uploads directory allowed — the two exceptions people forget and then wonder why images stopped appearing in image search.
Opting out of AI training crawlers
One checkbox writes the twenty groups you would otherwise look up individually, covering the training and answer bots that publish a user-agent name and read the file.
Holding a staging site back from search
The Block everything preset produces the Disallow: / group, and the tool reminds you to remove it before launch. Pair it with HTTP authentication, since the file asks crawlers to stay away rather than keeping anyone out.
Pointing crawlers at your sitemaps
Add one or several absolute sitemap URLs and they are appended after the rules, which is how a crawler finds new pages without waiting to stumble across a link.
Questions
Does any of this leave the tab?
Will a Disallow line remove a page from Google?
Does blocking AI crawlers actually stop them?
Why is crawl-delay described as ignored?
Can I give Googlebot different rules from everyone else?
Where does the file go, and does it cover subdomains?
Does the generator check my site?
Related tools
- Meta Tag Preview — See how your title and description look in search results.
- Redirect Checker — Follow a redirect chain and see every hop.
- WCAG Contrast Checker — Test colour pairs against AA and AAA thresholds.
- Favicon Generator — Generate a full favicon set from one source image.
- Open Graph Preview — Preview how a link unfurls on social platforms.
- Social Card Preview — Check Twitter, LinkedIn and Slack card rendering.