Robots.txt Generator

Create a robots.txt file and test which pages crawlers may visit

Generate a robots.txt that tells search engines which pages to crawl - with presets for WordPress and online shops, sitemap, crawl delay and AI crawler blocking - and test any path to see whether Googlebot or GPTBot is allowed.
Try an example:

Output will appear here...

About Robots.txt Generator

How it works

  1. Choose a preset or start blank, then list paths to block or always allow. Pasted full URLs are trimmed to their path.
  2. The tool writes the rules into a "User-agent: *" group that applies to all crawlers, plus an AI-crawler group if you block them, and your Sitemap line.
  3. Enter test paths to check them against your rules the way Google does: the longest matching rule wins, Allow beats Disallow in a tie, and * and $ wildcards work.
  4. Download the file - it is saved as robots.txt, ready to upload to your site's root (https://example.com/robots.txt).

What you need

  • Access to upload a file to the root of your domain (or a robots.txt setting in your CMS).
  • Optionally, the URL of your XML sitemap.

Tips

  • robots.txt controls crawling, not indexing: a blocked page can still appear in Google if other sites link to it. Use a noindex tag to keep a page out of results.
  • Do not block CSS and JavaScript files - Google needs them to render your pages.
  • Use * to match anything and $ to match the end: "Disallow: /*.pdf$" blocks all PDF files.
  • Paths are case-sensitive: /Admin and /admin are different.

Limitations

  • Well-behaved crawlers follow robots.txt; bad bots ignore it. It is not a security tool - never rely on it to hide private pages.
  • Google ignores Crawl-delay (Bing and Yandex respect it).
  • Blocking AI crawlers only works for companies that honour robots.txt and use these names.

Runs in your browser. Everything is generated in your browser.

Frequently asked questions

Where do I put robots.txt?+

In the root of your domain, so it loads at https://yourdomain.com/robots.txt. Each subdomain (blog.example.com) needs its own file.

Will Disallow remove a page from Google?+

No. Disallow stops crawling, but a page Google already knows about (or that is linked from elsewhere) can stay indexed without a description. To remove a page, allow crawling and add <meta name="robots" content="noindex">.

Should I block AI crawlers?+

It is a business choice. Blocking stops participating companies from using your content to train models; it does not affect Google Search rankings (Google-Extended only controls Gemini training).

What does an empty "Disallow:" mean?+

Nothing is blocked - all crawlers may visit every page. It is the standard way to say "allow everything".