Free Online Tool
Robots.txt Generator
Pick a site preset and customize. Get a clean robots.txt ready to upload to your site root in seconds.
What goes in a robots.txt
robots.txt tells search engine crawlers and AI bots what paths they can access on your site.
It lives at your domain root: https://yoursite.com/robots.txt. Every search engine
reads it before crawling. It's the single cheapest SEO control you have.
- User-agent: identifies which bot the rule applies to.
*means all. - Allow / Disallow: explicitly let or block crawler access to a path.
- Sitemap: points crawlers to your sitemap.xml so they discover pages faster.
- Crawl-delay: not honored by Google but useful for Bing/Yandex on slow servers.
Common mistakes to avoid
- Don't block CSS / JS: Google needs them to render your page properly. Blocking breaks SEO.
- Don't rely on robots.txt for security: it's public and crawlers may ignore it. Use real auth.
- Don't forget the sitemap line: Google can find your sitemap without it, but it's the fastest discovery path.
- Test before deploying: use Google Search Console's robots.txt tester to verify.