Robots.txt Generator — Create a Valid robots.txt Online Free

Free robots.txt generator: build a valid robots.txt with allow-all, block-all, or custom per-crawler rules plus sitemap and crawl-delay. Live preview, copy and download — runs entirely in your browser.

🔒 Runs entirely in your browser — your files never leave your device.

About Robots.txt Generator

robots.txt tells search-engine crawlers which parts of your site to visit and which to skip. Pick a preset or write custom per-crawler rules, optionally add a sitemap URL and crawl-delay, and get a correctly formatted robots.txt ready to drop into your site root. Everything is generated locally in your browser.

How to use Robots.txt Generator

  1. Choose a mode: allow all crawlers, block all crawlers, or custom rules.
  2. For custom rules, add rows with a user-agent, an Allow/Disallow directive, and a path.
  3. Optionally add your sitemap URL and a crawl-delay, then copy the text or download robots.txt.

Understanding robots.txt

What robots.txt does

A robots.txt file sits at the root of your domain (https://example.com/robots.txt) and tells well-behaved crawlers — Googlebot, Bingbot, and the rest — which URL paths they may or may not fetch. It is the first thing most crawlers read when they visit a site.

The file is organized into groups: each group starts with one or more User-agent lines naming the crawlers it applies to, followed by Allow and Disallow rules for those crawlers. A Sitemap line at the end points crawlers at your XML sitemap.

Allow vs Disallow

  • Disallow: /path — crawlers must not fetch URLs under that path.
  • Allow: /path — explicitly permits a path (useful to re-allow a subfolder inside a disallowed directory).
  • Disallow: (empty value) — allows everything for that user-agent.
  • When two rules match the same URL, Google applies the most specific (longest) match.

Common patterns

Goalrobots.txt rules
Allow everythingUser-agent: * / Allow: /
Block everythingUser-agent: * / Disallow: /
Block one directoryUser-agent: * / Disallow: /admin/
Block a single crawlerUser-agent: AhrefsBot / Disallow: /
Re-allow a subfolderDisallow: /private/ + Allow: /private/public/

Sitemap and crawl-delay

The Sitemap directive is optional but recommended: it helps crawlers discover your sitemap even before they find links to it. List it once, at the end of the file, with the full https URL.

Crawl-delay asks crawlers to wait N seconds between requests. It is supported by Bing and Yandex but ignored by Google — if Google crawls too aggressively, use the rate-limit settings in Google Search Console instead.

What robots.txt cannot do

robots.txt controls crawling, not indexing. A disallowed page can still appear in search results if other sites link to it, and Google may index the URL without its content. To keep a page out of search results entirely, use a noindex meta tag or require authentication — and remember crawlers must be allowed to fetch a page in order to see its noindex tag.

Frequently asked questions

Is this robots.txt generator really free?

Yes — free with no account and no limits.

Is anything I type uploaded?

No. The file is generated entirely in your browser; your URLs and rules never leave your device.

Where do I put the robots.txt file?

At the root of your domain, served at https://yourdomain.com/robots.txt with a 200 status. A robots.txt in a subdirectory is ignored by crawlers.

What does User-agent: * mean?

The asterisk matches every crawler. Rules under "User-agent: *" apply to all bots that do not have their own more-specific group.

Does robots.txt keep pages out of Google?

Not by itself. It stops crawling, but Google can still index a URL it can't fetch if other sites link to it. Use a noindex directive or authentication to truly exclude a page.

Related tools