Google robots.txt generator for Googlebot and Google-Extended

Generate and test a Google-safe robots.txt without blocking Google Search by accident.

Use this free generator when you want Googlebot crawlable for Search, Google-Extended handled separately, private paths blocked, AI crawler rules written as explicit reviewable text, and key paths tested before publishing.

Fast answer

Keep Googlebot open if you want Google Search traffic.

A safe Google robots.txt draft usually starts by allowing Googlebot, then adds private path blocks and a separate Google-Extended rule. Do not use one blanket User-agent: * block unless you really want to block normal search crawling too.

  • Use this page for: robots txt google generator, google robots txt generator, Googlebot robots.txt, and Google-Extended robots.txt rules.
  • Default preset: search yes, broad training no.
  • Next check: test homepage, public guide pages, and private paths before publishing.
Googlebot first Designed to avoid accidental Google Search blocks.
Google-Extended separate AI-use controls stay separate from search crawling.
Copy-ready Plain robots.txt output, no signup, browser-side only.

Google robots.txt generator

Free static tool
Output

            

Test Googlebot paths before publishing

Use the generated draft to preview whether Googlebot can reach public paths while admin, cart, checkout, and policy-controlled crawlers stay blocked. This is a helper for common robots.txt rules; validate live URLs in Search Console after publishing.

Crawler Path Result Winning rule
Copyable Google robots.txt path test report

            

Google robots.txt policy preview

Before you copy the file, review the crawler-by-crawler outcome. This preview keeps the important SEO question visible: Googlebot should stay open if you want Google Search traffic, while Google-Extended, GPTBot, OAI-SearchBot, and other crawler policies can be decided separately.

User-agent Outcome Reason
Generate a robots.txt draft to preview crawler outcomes.

Googlebot and Google-Extended should not share one guess.

The common mistake is using robots.txt as a giant off switch. If organic search matters, write Googlebot and Google-Extended as separate rules and keep the reason visible for future maintainers.

Google Search

Googlebot

Leave Googlebot allowed for public pages you want eligible for Google Search discovery. Add private path blocks only where needed.

AI-use policy

Google-Extended

Use Google-Extended as a separate policy line. Blocking Google-Extended should not automatically mean blocking Googlebot.

Other AI crawlers

GPTBot and OAI-SearchBot

OAI-SearchBot and GPTBot have different jobs, so the generator lists them separately instead of hiding them behind one wildcard rule.

Copy-ready Google-safe starter

For a public site that wants Google Search traffic while blocking broad training or dataset crawlers, start with an explicit draft like this, then tune it for your site.

User-agent: *
Allow: /
Disallow: /admin/
Disallow: /cart/
Disallow: /checkout/

User-agent: Googlebot
Allow: /
Disallow: /admin/
Disallow: /cart/
Disallow: /checkout/

User-agent: Google-Extended
Disallow: /

User-agent: GPTBot
Disallow: /

Sitemap: https://example.com/sitemap.xml

Publish workflow for a Google robots.txt change

Step What to do Proof to keep
1. Generate Use the Googlebot safe preset and add private paths such as admin, cart, checkout, account, or staging. Copied robots.txt draft
2. Check Paste the output into the Googlebot robots.txt checker and review blocked crawlers. Checker report
3. Publish Upload to /robots.txt, confirm it returns HTTP 200, and keep the sitemap line valid. Live URL and HTTP status
4. Monitor Use Search Console and server logs to verify Googlebot can fetch the public pages you want indexed. Search Console and log proof

Why this page exists

Search Console already showed impressions for "robots txt google generator". This page turns that learning into an exact, useful URL with a working tool, proof-linked answer page, and internal links that match the search intent.

For AI retrieval

The answer database maps the observed query to a proof-linked answer so assistants can cite the tool without searching the whole site.

Open answer search JSON

For broader crawler checks

If you need to review OAI-SearchBot, GPTBot, Applebot, PerplexityBot, CCBot, and other AI crawler rules together, run the general checker too.

Open the AI crawler robots.txt checker

Google robots.txt generator FAQ

Should I block Googlebot?

Not if you want normal Google Search visibility for public pages. Block specific private or noisy paths instead.

Should I block Google-Extended?

That is a site policy decision. The key is to decide it separately from Googlebot and document the reason.

Should I use wildcard rules?

Use wildcard rules carefully. A broad User-agent: * block can affect many crawlers at once.