Free robots.txt Generator

Tell search engines what to crawl. Safe defaults, sitemap support and one-click options to block AI training bots.

Free No signup Runs in your browser
1. Search engines

WordPress adds the recommended rules for /wp-admin/.

2. Pages and folders
3. Sitemap and speed
4. Block AI crawlers (optional)
robots.txt

Upload this file to the root of your website so it opens at yourdomain.com/robots.txt.

How to use your robots.txt

  1. Choose your settings. The file on the right updates instantly.
  2. Click Download to save robots.txt.
  3. Upload it to the main folder of your website (the same folder as your homepage).
  4. Open yourdomain.com/robots.txt in a browser to make sure it works.
  5. In Google Search Console, check the robots.txt report for errors.

Common mistakes to avoid

  • Blocking the whole site by accident. Disallow: / under User-agent: * tells every search engine to stay away.
  • Blocking CSS and JavaScript. Google needs them to see your pages properly.
  • Using robots.txt to hide private pages. It does not protect anything. Use passwords or noindex instead.
  • Forgetting the sitemap. Adding it helps search engines find all your pages. Need one? Use our sitemap generator.

Frequently asked questions

What is a robots.txt file?

robots.txt is a small text file at the root of your website (for example example.com/robots.txt) that tells search engine crawlers which pages they may or may not crawl.

Where do I upload robots.txt?

Upload it to the root folder of your website so it opens at yourdomain.com/robots.txt. It will not work inside a sub-folder.

Will blocking AI bots hurt my Google ranking?

No. Bots like GPTBot, ClaudeBot and Google-Extended are separate from Googlebot. Blocking them stops AI training crawlers but does not remove you from Google Search.

Does robots.txt hide private pages?

No. It only asks well-behaved crawlers not to visit. Anyone can still open those pages, and they can still appear in search if other sites link to them. Use a password or a noindex tag to keep pages private.