A robots.txt file tells search engines and crawlers which parts of your site they may and may not crawl. This generator builds a valid one from a preset — allow all or block all — or from custom rules with user-agent, disallow and allow paths, a crawl-delay, and your sitemap URL.
How it works
The tool assembles standard robots.txt directives in the correct order. A User-agent line names the crawler (* for all), followed by Disallow lines for paths to block and Allow lines for exceptions. An optional Crawl-delay asks crawlers to pace their requests, and a Sitemap line points crawlers to your sitemap URL. The presets are shortcuts: “allow all” emits User-agent: * with an empty Disallow, and “block all” emits Disallow: /. You then copy the output or download a ready-to-deploy file. Remember robots.txt is an instruction to well-behaved crawlers, not a security control.
Example
A custom config blocking the admin and cart but allowing a public sub-path, with a sitemap:
User-agent: *
Disallow: /admin/
Disallow: /cart/
Allow: /cart/help/
Crawl-delay: 10
Sitemap: https://example.com/sitemap.xml
| Directive | Meaning |
|---|---|
User-agent: * | Applies to all crawlers |
Disallow: /admin/ | Do not crawl /admin/ |
Allow: /cart/help/ | Exception within a blocked folder |
Sitemap: | Location of your sitemap |
Place the file at the root of your domain (https://example.com/robots.txt). Everything is generated in your browser, so nothing is uploaded.