Free robots.txt Generator
Tell search engines what to crawl. Safe defaults, sitemap support and one-click options to block AI training bots.
robots.txt How to use your robots.txt
- Choose your settings. The file on the right updates instantly.
- Click Download to save
robots.txt. - Upload it to the main folder of your website (the same folder as your homepage).
- Open
yourdomain.com/robots.txtin a browser to make sure it works. - In Google Search Console, check the robots.txt report for errors.
Common mistakes to avoid
- Blocking the whole site by accident.
Disallow: /underUser-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.