robots.txt Generator
robots.txt Generator turns Allow/Disallow rules, user-agents and a sitemap link into a robots.txt file through a visual interface, catching syntax mistakes as you go.
User-agent: * Allow: / Disallow: /admin/ Sitemap: https://example.com/sitemap.xml
How it works
- 1Add a user-agent (e.g. `*`, `Googlebot`).
- 2Define allowed and disallowed paths (like `/admin/`, `/*.pdf$`).
- 3Add your sitemap URL.
- 4Copy or download the generated robots.txt and upload it to your site's root.
Frequently asked questions
Where should the robots.txt file go?−+
Always at the domain's root (e.g. `https://site.com/robots.txt`); placed in a subfolder or any other path, search engines won't find it.
Does Disallow remove a page from the index entirely?−+
No, it only stops bots from crawling that path; the page can still get indexed if it's linked from elsewhere. To remove it for sure, use a `noindex` meta tag or a Search Console removal request.
Do I need the same rules for every bot?−+
No, different user-agent blocks can apply different rules to different bots; e.g. a block specific to `Googlebot` takes priority over a `*` block.
How do I know if there's a syntax error?−+
The tool validates every line in real time, warning on things like an invalid directive or a missing `:`.
Embed on your site
<iframe src="https://toolsqube.com/en/seo/robots-txt-generator/embed" width="480" height="360" style="border:0;border-radius:14px" title="robots.txt Generator · ToolsQube" loading="lazy"> </iframe>
Want to go deeper on this topic: SEO Tools Guide →