Free SEO Tools › Robots.txt Generator

Free Robots.txt Generator

Build a safe robots.txt for your website — with your sitemap, the folders to block and your choice on AI crawlers.

Your robots.txt

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

Is your robots.txt blocking Google?

SearchMetric Premium checks your robots.txt, sitemap, HTTPS and every page of your site, and e-mails you every week if something breaks.

See plans →

What is robots.txt?

robots.txt is a small text file in the root of your website that tells search engine crawlers which parts of the site they may visit. It is also the place to tell Google where your XML sitemap is.

Common mistakes

  • Disallow: / on a live site — this blocks every page from Google.
  • Blocking CSS or JavaScript files that Google needs to render the page.
  • Using robots.txt to hide private pages — it only asks crawlers politely; use a password or noindex instead.
  • Pointing to a sitemap URL that returns 404.

Frequently asked questions

Where do I put robots.txt?

In the root folder of your website, so it opens at https://yourdomain.com/robots.txt. On WordPress you can edit it in Rank Math (General Settings > Edit robots.txt) or Yoast (Tools > File editor).

Does robots.txt remove a page from Google?

No. It stops crawling, but a blocked page can still appear if other sites link to it. To remove a page use a noindex meta tag and keep the page crawlable.

Should I block AI crawlers?

It is your choice. Blocking GPTBot, CCBot or Google-Extended stops those companies using your content for AI training, and does not change your normal Google rankings.

Do I need a sitemap line?

It is recommended. The Sitemap line helps every search engine find your sitemap even if you have not submitted it in their webmaster tools.

More free SEO tools