Robots.txt Generator

✓ 100% Free ✓ No Sign-Up ✓ Private by Design
SEO Tools · RFC 9309 · Generator + Tester

Robots.txt Generator

Build a valid robots.txt file, then test any URL against it — generator and tester in one page.

Your robots.txt

Upload the file as robots.txt to your site root (https://yourdomain.com/robots.txt). On WordPress, your SEO plugin’s robots.txt editor does this for you.

Was this helpful?

How to use the Robots.txt Generator

  1. Pick a preset (Allow all, Block all, WordPress, Shopify, or block AI training bots) or build your own groups — one user-agent per group, with Disallow and Allow paths.
  2. Add a crawl delay and your sitemap URLs if you want them, then copy the file or download it as robots.txt and upload it to your site root.
  3. Switch to the Tester tab, paste any robots.txt, enter a crawler and a URL path, and see whether it is allowed — with the exact rule that decided it.

Robots.txt Generator FAQs

What is a robots.txt file?

A plain text file at your domain root (yoursite.com/robots.txt) that tells well-behaved crawlers which URL paths they may request. It is a request, not enforcement: Google, Bing and the big search crawlers follow it, but a robots.txt file does not hide private pages — use a password or noindex for anything that must stay private.

How does the tester decide Allowed or Blocked?

It follows RFC 9309 (the Robots Exclusion Protocol): the group with the most specific matching user-agent wins (a named bot beats the * wildcard group), then the longest matching rule in that group wins, and if an Allow and a Disallow rule tie on length, Allow wins. If no rule matches, the URL is allowed. The tester shows the deciding rule and its line number.

Should I block AI training crawlers like GPTBot?

That is your choice. Blocking GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot, Meta-ExternalAgent, Bytespider and Amazonbot keeps your content out of model training data. Note that AI search crawlers (such as OAI-SearchBot, which powers ChatGPT answers) are different bots — blocking training crawlers does not remove you from AI search answers, and allowing search crawlers keeps you visible there. The AI preset blocks training crawlers only.

What is crawl-delay, and does Google respect it?

Crawl-delay asks a crawler to wait a number of seconds between requests. Bing and Yandex respect it; Google ignores it and uses Search Console crawl settings instead. Set it only if a crawler is hammering a small server — a value of 5 to 10 seconds is typical.

Where do I put the file after downloading it?

Upload it as robots.txt to the root of your website (the same folder as your homepage), so it loads at https://yourdomain.com/robots.txt. On WordPress, Rank Math and most SEO plugins have a robots.txt editor that does this for you; on Shopify, robots.txt is managed through a robots.txt.liquid theme template instead of a plain file.

Free Robots.txt Generator & Tester — Build and Check Crawler Rules

This free robots.txt generator builds a valid crawler-rules file for your site — per-crawler groups, presets for WordPress, Shopify and AI training bots, crawl delay and sitemaps — and its built-in tester checks any URL against any robots.txt using the RFC 9309 rules.

How to use it, step by step

  1. Pick a preset or add rule groups: one user-agent per group, with Disallow and Allow paths.
  2. Add a crawl delay and your sitemap URLs, then copy the file or download robots.txt.
  3. Use the Tester tab to check whether a crawler may fetch a URL — the deciding rule is shown.

Popular uses

  • Stop search engines wasting crawl budget on admin, cart and search-result pages.
  • Keep AI training crawlers out while staying visible in AI search answers.
  • Generate a correct robots.txt for a WordPress or Shopify site in under a minute.
  • Debug a robots.txt file by testing real URLs against it before publishing.
Scroll to Top