robots.txt Generator
Build robots.txt and have it validated in the same pass, with the failure modes that cost the most traffic flagged as errors.
Rules
One path per line. Allow rules are checked before Disallow on most crawlers, which is why an Allow can rescue a path inside a blocked directory — that is the advanced technique, and the validator flags it either way.
Must be absolute.
Googlebot ignores this; other crawlers honour it.
robots.txt
- No Sitemap line. Listing your sitemap here helps discovery even though Search Console submission is the stronger signal.
Copy this straight to your server
The file must be served from /robots.txt at the root of the domain, in plain text. A robots.txt under a subdirectory is ignored.
The mistakes that cost the most traffic
Disallow: / with no Allow blocks everything, including your homepage. It usually happens when a staging file is deployed to production.
Blocking CSS and JavaScript. Google renders pages using them. A blocked stylesheet makes the crawl see a broken layout, which affects how the page is assessed. Only the old, now-retired rules recommended doing this.
Assuming robots.txt removes a page from the index. It prevents crawling, not indexing. To remove a page use noindex or a removal request; robots plus noindex is a trap, because the noindex tag is never seen if the page is never crawled.
Next in this workflow: robots.txt Validator, Sitemap Generator or Sitemap Validator. Or browse every QUICKKIT tool.
robots.txt Generator processes pasted markup, URLs and draft copy entirely inside your browser tab without sending page drafts to a server. Copy or download the generated output before reloading.
The grammar
User-agent lines begin a group; Allow and Disallow lines follow. Only * and $ have special meaning in paths. Sitemap is a global directive and takes an absolute URL. Crawl-delay is respected by some crawlers and ignored by Googlebot.
Common failure modes checked
Disallow: / with no Allow (blocks everything), blocked CSS or JavaScript (breaks rendering), non-absolute sitemap URLs (ignored), unsupported wildcard characters (treated literally), and a crawl-delay set on Googlebot (ignored).
How to use the robots.txt generator
- Choose the user agent, or keep it at all crawlers.
- List paths to disallow, one per line.
- Add the absolute sitemap URL.
- Read the validation — a Disallow: / with no Allow, or a blocked CSS file, is reported as an error.
robots.txt Generator questions, answered
Does robots.txt remove a page from Google?
No. It prevents crawling, not indexing. A blocked URL can still appear in results if it is linked elsewhere, because Google cannot read the page to know you wanted it gone. To remove a page, use a noindex tag and let it be crawled, or a removal request in Search Console.
Why is blocking CSS and JavaScript an error here?
Because Google renders pages with them. A blocked stylesheet makes the crawl see a broken layout, which affects how the page is assessed. Older guidance recommended blocking them, and that advice is wrong now.
Do Allow rules override Disallow?
On crawlers that implement the longest-match rule, yes — the more specific pattern wins. An Allow for a path inside a blocked directory is the standard technique, and the validator notes it rather than forbidding it.
Should I use Crawl-delay?
Googlebot ignores it. Other crawlers honour it. If you need to slow Google down, the crawl-rate setting in Search Console is the supported way. The tool notes this when a Googlebot group is given a delay.
robots.txt Generator: how it compares, and when to use something else
Build robots.txt and have it validated in the same pass, with the failure modes that cost the most traffic flagged as errors. Below is how robots.txt Generator on QUICKKIT compares with a live server-crawl & log-analysis suite, including the exact rules applied in this tab and when to use a dedicated platform instead.
Use robots.txt Generator on QUICKKIT for fast, private, zero-signup checks where transparent rules matter; switch to a live server-crawl & log-analysis suite when you need live external data feeds, multi-user workflows or formal compliance sign-off.
