How to use the Robots.txt Generator
- Choose whether crawlers may crawl the site.
- List any paths to block, like /admin/ or /cart.
- Add your sitemap URL.
- Download robots.txt and upload it to your site's root.
What does this tool do?
robots.txt tells crawlers which parts of your site they may visit. It's a request, not security — reputable search engines follow it, but it doesn't hide pages. Never use it to protect private content.
Blocking a page in robots.txt can actually keep it in search results (without a description), because Google can't see a noindex tag on a page it isn't allowed to crawl.
Why use it?
- Keep crawlers out of admin, cart and search pages.
- Point search engines to your sitemap.
- Opt out of AI training crawlers.
A typical robots.txt
User-agent: *
Disallow: /admin/
Disallow: /cart
Sitemap: https://example.com/sitemap.xmlPrivacy
Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.
Frequently asked questions
Should I block CSS and JavaScript?
No. Google needs them to render your pages and judge mobile-friendliness. Blocking them can hurt rankings.
Last reviewed by the M2Toolkit team.