Skip to content
OTools.io

Free SEO tool · No account required

Robots.txt Generator

Create crawl directives for search engine bots.

Free toolRuns in browserNo data sent to servers

Loading the tool interface…

How to use this tool

  1. Choose one or more crawler product tokens, or * for all crawlers. All tokens share a single rule group.
  2. Add one Disallow or Allow path per line and optionally add absolute sitemap URLs.
  3. Generate and review the file, then save it as robots.txt at your website’s root.

How results are calculated

User-agent tokens, paths and sitemap URLs are validated. Duplicate lines are removed and non-ASCII path characters are percent-encoded. Empty disallow input produces an empty Disallow directive. No nonstandard crawl-delay or noindex directive is generated.

Example

User-agent: *
Disallow: /admin/
Allow: /admin/public/

Sitemap: https://example.com/sitemap.xml

Limitations

  • Robots.txt is not authentication. Disallowed URLs may still appear in search results.
  • This generator creates one rule group, not a multi-group policy editor. Crawler compliance and sitemap support vary.
  • Blocking / affects the entire site except applicable, more specific Allow rules. Always review generated rules before deployment.

Frequently asked questions

How do I allow crawling?

Use * and leave the Disallow list empty. The generated empty Disallow directive does not block paths.

Can I use robots.txt to hide private files?

No. Use authorization and other access controls. The robots file is public and describes crawler preferences.

References