ToolsRobots.txt Generator
Robots.txt Generator
Generate a valid robots.txt file with common rules, custom paths, and sitemap URL in seconds.
Crawl Rules
Custom Rules
Sitemap URL (optional)
Generated robots.txt
User-agent: * Allow: /
How to Use
- Select the crawl rules that apply to your site.
- Add any custom path-level allow/disallow rules.
- Optionally enter your XML sitemap URL.
- Copy the generated file and save it as
robots.txtin your website's root directory. - Test it using Google Search Console's robots.txt tester.
Quick Tips
Place robots.txt in the root of your domain.
robots.txt is a suggestion — not a block. Use noindex for sensitive pages.
Never block CSS/JS needed to render your pages.
Always include your sitemap URL.
Test changes with Google Search Console before deploying.