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.
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
- Choose a mode: allow all crawlers, block all crawlers, or custom rules.
- For custom rules, add rows with a user-agent, an Allow/Disallow directive, and a path.
- 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
| Goal | robots.txt rules |
|---|---|
| Allow everything | User-agent: * / Allow: / |
| Block everything | User-agent: * / Disallow: / |
| Block one directory | User-agent: * / Disallow: /admin/ |
| Block a single crawler | User-agent: AhrefsBot / Disallow: / |
| Re-allow a subfolder | Disallow: /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
Age Calculator
Calculate exact age in years, months, and days, plus total days/weeks/hours lived and a next-birthday countdown.
runs locallyBase64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text, instantly in your browser.
WebAssemblyCLI / agentCase Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and kebab-case.
WebAssemblyCLI / agentColor Converter
Convert colors between HEX, RGB, and HSL formats instantly.
WebAssemblyCLI / agentColor Palette Extractor
Extract the dominant colors from any image as a hex palette with percentage shares.
runs locallyCron Parser / Schedule Explainer
Translate any 5-field cron expression into plain English and see the next 10 run times — computed locally in your timezone.
runs locally