Skip to content
Crawling and indexing · free, no sign-up

Robots.txt Generator

Builds a valid robots.txt from a simple form, with your sitemap and your choice about AI crawlers.

One per line, starting with /. Never block pages you want in Google, or your CSS and JavaScript.
Your choice. Blocking AI search can keep you out of AI answers that would link to you, and fetchers acting for a person may ignore these rules. The training option includes Google-Extended, which also covers Gemini's grounding, but not Google Search or AI Overviews.

Your robots.txt

Save this as robots.txt at the top of your site, then test it with the Robots.txt Checker. It asks crawlers to stay away, but doesn't protect private pages.

Why it matters

A robots.txt keeps crawlers out of areas that don't need crawling and points them to your sitemap. One wrong line can hide your whole site from Google, so it is worth building carefully.

How to fix it

  • List only folders that really shouldn't be crawled.
  • Add your sitemap address.
  • Save it at the top of your site, then test it with the Robots.txt Checker.

What a good result looks like

A short file that blocks only what needs blocking, names your sitemap, and doesn't block CSS or JavaScript.

Common mistakes

  • Leaving "Disallow: /" in place after launching a staging site.
  • Blocking a page to hide it: use noindex or a login, since robots.txt is public.
  • Listing secret folders, which tells everyone where they are.

Questions about the Robots.txt Generator

Where does robots.txt go?

At the very top of your site, at example.com/robots.txt. Each subdomain needs its own.

Does it remove pages from Google?

No. It stops crawling, but a blocked page can still appear if others link to it. Use noindex to keep a page out of results.

Check everything at once

Run our other instant checks on your site in one report.

Full SEO check-up

More crawling and indexing tools