Robots.txt Generator Online — Free Tool

Generate compliant robots.txt directives to instruct search engine crawlers on indexing your website.

Robots.txt Generator
Generate a `robots.txt` file locally (no upload).
Tip: Keep disallow rules small and intentional; blocking everything can hurt discovery.
Privacy note: All processing happens entirely in your browser. No data is sent to our servers.

About this tool

robots.txt tells compliant crawlers which paths they may request. Generate User-agent, Allow, and Disallow rules without memorizing syntax.

robots.txt is not access control—sensitive URLs still need authentication.

Common use cases

  • Blocking staging or admin paths from indexing
  • Declaring sitemap.xml location for crawlers
  • Setting crawl-delay for polite bots (non-Google)
  • Documenting crawl policy for new sites

How to use

  1. List user agents to target (* for all bots).
  2. Add Allow and Disallow path rules.
  3. Include Sitemap: URL pointing to your sitemap.
  4. Copy robots.txt to your site root at /robots.txt.

This page is available at /tools/robots-txt-generator/.

Understanding the result

  • Disallow prevents crawling, not necessarily indexing if URLs are linked elsewhere.
  • Rules are prefix-based unless wildcards supported by specific bots.
  • Sitemap directive helps discovery; it does not replace valid sitemap content.
  • Google ignores crawl-delay; other bots may honor it.

FAQ

Does Disallow hide pages from Google?

It discourages crawling. Use noindex on pages you do not want indexed.

Where does robots.txt live?

Must be at https://example.com/robots.txt at domain root.

Block all crawlers?

User-agent: * with Disallow: / blocks all paths for compliant bots.

Allow vs Disallow order?

Most specific matching rule wins in Google's interpretation for overlapping rules.