Robots.txt Generator

Create a clean robots.txt without memorising the syntax. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified
* means all crawlers. Use a name such as Googlebot for one crawler.

How to use it

  1. Enter the crawler name (or * for all).
  2. List paths to disallow, and optionally paths to allow inside them.
  3. Add your sitemap address, copy the result and save it as robots.txt in your site’s root folder.

How it works

The file is a list of groups. Each starts with User-agent and is followed by Allow and Disallow lines. A path starts with / and may use * as a wildcard. An empty Disallow means everything is allowed. A Sitemap line tells crawlers where your sitemap is.

Per Google’s documentation, robots.txt is not a mechanism for keeping a page out of Google: a blocked URL can still appear in results without a description. Use a noindex rule or password protection for that.

Examples

  • Disallow: /admin/ asks crawlers not to fetch anything under /admin/.

Limitations

  • Only one user-agent group is generated at a time; add more groups by hand or generate them separately.
  • robots.txt is advisory: well-behaved crawlers follow it, malicious ones may not. Never use it to hide sensitive information.
  • Directives other than Allow, Disallow and Sitemap (such as Crawl-delay) are not generated because support varies.

References

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.