Robots.txt Generator

Choose a preset or set custom rules to generate a robots.txt file for your site. Everything happens locally in your browser.

Rules
One path per line
Optional — use to carve out exceptions
robots.txt

        

How to use the Robots.txt Generator

  1. Pick a preset, or choose "Custom rules" to set your own.
  2. List any paths to disallow or allow, one per line.
  3. Add your sitemap URL so crawlers can find it.
  4. Download the file and upload it to your site's root as robots.txt.

Frequently asked questions

Is this Robots.txt Generator free to use?

Yes, it is completely free with no sign-up or usage limits.

Is my data uploaded anywhere?

No. The file is generated locally in your browser using JavaScript — nothing is sent to a server.

Where do I put the robots.txt file?

It must be placed at the root of your domain, for example https://example.com/robots.txt — it will not work in a subfolder.

What's the difference between Allow and Disallow?

Disallow tells crawlers not to access a path. Allow explicitly permits a path — most useful for carving out an exception inside a broader Disallow rule.

Does robots.txt stop pages from appearing in Google?

Not reliably on its own — it only asks crawlers not to fetch a page's content. A disallowed page can still be indexed (e.g. via links from other sites) without a snippet. Use a noindex meta tag instead if you need a page kept out of search results entirely.

Related tools