Web & Network

Robots.txt Generator

Generate robots.txt files for search engines

Build a robots.txt file that tells search-engine crawlers which parts of your site they may or may not access, and points them to your sitemap. Getting it right prevents crawlers from wasting time on private paths, and avoids accidentally blocking pages you want indexed.

Runs 100% in your browser · no upload, no tracking, no ads

How to use Robots.txt Generator

  1. Choose which user agents and paths to allow or disallow.
  2. Add your sitemap URL.
  3. Generate the robots.txt content.
  4. Save it as robots.txt at your site root.

Frequently asked questions

Does robots.txt keep a page out of Google?

Not reliably. Disallow stops crawling, but a blocked URL can still be indexed if linked elsewhere. To keep a page out of the index, use a noindex meta tag and allow crawling.

Where does robots.txt go?

It must live at the root of your domain (example.com/robots.txt); crawlers look for it there before crawling.

Should I list my sitemap in robots.txt?

Yes. Adding a Sitemap line helps crawlers discover your sitemap even if you haven't submitted it manually.

Related Web & Network tools