← Toolz / SEO & Web / Robots.txt Generator

Robots.txt Generator

SEO·11
Free No sign-up Builder runs in your browser
Start from a preset
Import existingNEW

Block AI crawlers

Honest note: only crawlers that choose to obey robots.txt will respect this.

Crawler groups

One group per crawler, rules as rows. The file updates live as you type. A group with an empty Disallow means “allow everything”. Click a Disallow / Allow badge to switch it.

SITEMAP URLS

Your robots.txt (live) 0 errors 0 warnings

TEST A URLNEW
What can bots see?NEW
PathResultReason
Check a live robots.txt

Enter any site address and we fetch its current /robots.txt and break it into groups. (This checks a live file — it does not read the builder above.)

Crawler directoryNEW
CrawlerOwnerStatusBlock
Best practice checklist

Build a robots.txt file visually: pick a crawler, add Allow and Disallow rules, set a crawl delay, then copy or download the result. No syntax to memorise.

100% free · No sign-up · No daily limits · No watermarks

UNDERSTAND YOUR RESULTS

Robots.txt Generator — Build Crawler Rules Visually guide

Build a robots.txt file visually: pick a crawler, add Allow and Disallow rules, set a crawl delay, then copy or download the result. No syntax to memorise.

📖 From the blog: Creating a robots.txt file: rules, templates and the mistakes that block Google

How to use this tool

  1. Start from a preset — WordPress, WooCommerce, Shopify, blog, allow-all, block-all and block-AI-training starting points are built in — or begin with the first rule group. Choose a user-agent — the star means every crawler; pick a named bot such as Googlebot, Bingbot or GPTBot to write rules for that crawler only.
  2. Add Disallow rows for paths bots should not crawl (checkout, account, admin and search-results paths are common) and Allow rows for exceptions inside them. Paths start with a slash and are matched as prefixes.
  3. Add more groups for other crawlers, set a crawl-delay if a bot is hammering a small site, and add your sitemap address at the bottom — Detect sitemap can find it on your current site, and the Block AI crawlers panel adds whole-site blocks for GPTBot, ClaudeBot, CCBot and other AI bots in one click.
  4. Copy the generated file or download it as robots.txt, place it in your site’s root, and before publishing test individual URLs with the URL tester and the per-bot path table. The checker below reviews a live file — and you can import a checked file straight into the builder and diff your draft against the live one.

A worked example

To keep every bot out of a checkout while still letting them see the shop around it: one group for all crawlers with Disallow: /checkout/ and Disallow: /account/, a second group for GPTBot with Disallow: / to keep AI training crawlers out entirely, and the sitemap line at the end. The generated file keeps the groups in the order you built them.

What you can do with this tool

How it works

robots.txt is a plain-text protocol: groups of user-agent lines followed by Allow, Disallow and Crawl-delay rules, with the sitemap line independent of any group. The generator assembles exactly that text from your rows, live as you type: an empty group with no rules means "allow everything", and in real crawlers the most specific matching rule wins. The optional checker fetches an existing /robots.txt through our protected fetcher — robots files are plain text, which the fetcher accepts — and breaks it into its groups for review.

Frequently asked questions

Where does robots.txt live?

At the root of your host: https://example.com/robots.txt. It must be a plain-text file at exactly that address — one per host, including separate ones for subdomains.

What is the difference between Disallow and noindex?

Disallow stops crawling; noindex (a meta tag or header) stops indexing but requires the crawler to load the page. To remove a page from results, allow crawling and use noindex — blocking it in robots.txt hides the noindex from the crawler.

Can I block AI crawlers with it?

Yes — the Block AI crawlers panel does it in one click per bot, adding a group naming the AI crawler (for example GPTBot or ClaudeBot) with Disallow: / as its only rule; you can also add such a group by hand. Compliant AI crawlers honour it, but crawlers that ignore robots.txt will not be stopped by it.

What does crawl-delay do?

It asks a crawler to wait that many seconds between requests. Google ignores it (use Search Console’s settings there), but Bing, Yandex and many smaller bots respect it. Leave it empty unless a bot is overloading you.

Why does the checker say no robots.txt was found?

The file may genuinely be absent (every crawler then defaults to "everything allowed"), the site may have answered our fetch with an error, or the file may be served under a different host. Check the address in a browser to confirm.

What does an empty Disallow line mean?

It means allow everything. A group with no rules, or a Disallow with nothing after it, places no restriction on that crawler. If you meant to block a folder, the path has to be there — for example Disallow: /checkout/ — and paths are matched as prefixes starting with a slash.

Will robots.txt keep a private page private?

No. robots.txt is a public request, not a lock: well-behaved crawlers obey it and others can ignore it, and anyone can read the file itself. Never list secret paths you have not otherwise secured, and use real access control for anything private.