Generate a clean robots.txt file for crawlers, staging blocks, sitemap discovery, and simple SEO crawl control.
Default crawler rule
Generated robots.txt
How to use this tool
- Choose whether crawlers should be allowed or blocked by default.
- Add your sitemap URL so search engines can discover important URLs faster.
- Add one custom disallow path per line for admin, private, or duplicate areas.
- Copy the output into a file named robots.txt at the domain root.
Common mistakes
- Using robots.txt to protect private data. It is public and not a security feature.
- Blocking CSS, JavaScript, or images needed for rendering important pages.
- Adding a sitemap URL from the wrong protocol or domain.
FAQ
Does robots.txt remove pages from Google?
No. It controls crawling, not indexing. Use noindex or remove the URL when you need deindexing.
Where should robots.txt be placed?
Place it at the domain root, for example https://example.com/robots.txt.
Can I use multiple sitemap lines?
Yes. This starter generator outputs one sitemap line, but you can add more Sitemap directives manually.
Related tools
Related guides and fixes
Last updated: May 17, 2026