ToolsRobots.txt Generator

Robots.txt Generator

Generate a valid robots.txt file with common rules, custom paths, and sitemap URL in seconds.

Crawl Rules

Custom Rules

Sitemap URL (optional)

Generated robots.txt

User-agent: *
Allow: /

How to Use

  1. Select the crawl rules that apply to your site.
  2. Add any custom path-level allow/disallow rules.
  3. Optionally enter your XML sitemap URL.
  4. Copy the generated file and save it as robots.txt in your website's root directory.
  5. Test it using Google Search Console's robots.txt tester.

Quick Tips

Place robots.txt in the root of your domain.

robots.txt is a suggestion — not a block. Use noindex for sensitive pages.

Never block CSS/JS needed to render your pages.

Always include your sitemap URL.

Test changes with Google Search Console before deploying.