About This Tool
robots.txt Generator helps you draft a robots.txt file with User-agent, Disallow, Allow, and Sitemap lines. Output is built locally in your browser so you can copy it to your site root.
How to Use
- Set a User-agent (often *)
- Add Disallow and Allow paths
- Optionally add Sitemap URLs
- Add more User-agent blocks if needed
- Copy the generated file
Common Use Cases
- Block staging paths
- Allow a public folder while disallowing /admin
- Add sitemap references
- Draft rules before deploy
- Teach crawl directives