Robots.txt Generator & Validator
Build a robots.txt file from crawler groups, Allow and Disallow rules and sitemaps, check an existing file for syntax errors and risky rules, and test whether a URL is allowed for a crawler. Everything runs in your browser — nothing is uploaded or fetched, and results are a local simulation, not a Google verdict.
- Free to use
- No account required
- Runs in your browser
Robots.txt Generator & Validator
Next, you might want to
Was this tool helpful?
Good to know
- Useful for
- Website owners, bloggers, online shops, SEO specialists and developers who need a correct robots.txt, want to audit an existing one, or need to understand why a URL is allowed or blocked.
- Accepts
- Crawler groups (user-agent tokens and Allow / Disallow paths), sitemap URLs and an optional website origin — or pasted robots.txt content, a crawler token and a URL to test
- Produces
- A deterministic UTF-8 robots.txt to copy or download, a validation report separating errors, warnings and notes, and an allowed, disallowed or cannot be determined verdict with the deciding group and rule
Privacy
Everything runs in this browser page. What you type or paste isn't uploaded, saved in cookies or browser storage, or added to the page address. The tool never fetches your website, its live robots.txt, sitemaps or any URL you test, and never executes pasted content.
Limitations
- What robots.txt does: robots.txt is a plain-text file at the root of a host that asks crawlers which URL paths they may crawl. It's defined by RFC 9309 (the Robots Exclusion Protocol). Compliant crawlers read it before crawling; it is a request, not an enforcement mechanism.
- Crawling is not indexing: robots.txt controls crawling, not whether a URL appears in search results. A disallowed URL can still be indexed — usually without a description — if other pages link to it. To keep a page out of Google's results, allow crawling and use a noindex robots meta tag or X-Robots-Tag header.
- robots.txt is not security: the file is public and only well-behaved crawlers follow it. Never rely on it to hide private content; listing a secret path in robots.txt actually advertises it. Use authentication or access control instead.
- Where the file lives: robots.txt applies only to the protocol, hostname and port it's served from. The https file for example.com doesn't cover the http version, the www or shop subdomains, or another port such as 8443 — each needs its own file at its root. A file in a subfolder is ignored.
- User-agent groups: a group starts with one or more User-agent lines followed by Allow / Disallow rules. A crawler uses only the group with its own product token (matched without regard to letter case); if several groups name it, their rules are combined. Only when no group names it does it use the * group. Blank lines, Sitemap lines and other directives don't end a group.
- How rules match: rules are case-sensitive path prefixes that also cover the query string. * matches any sequence of characters and a final $ marks the end of the URL. The most specific (longest) matching rule wins regardless of its position in the file; if an Allow and a Disallow rule are equally specific, Allow wins. An empty Disallow allows everything; a URL no rule matches is allowed.
- Percent-encoding and international URLs: crawlers compare paths as UTF-8 percent-encoded octets, so /café and /caf%C3%A9 are the same path. RFC 9309 also decodes escaped unreserved characters (such as %7E for ~) before comparing, while Google's documented parser compares more literally. The tester reports the result as undetermined when that difference changes the outcome.
- Sitemap directives: Sitemap lines take absolute URLs, apply to the whole file rather than one group, and may point to another host such as a CDN. They help crawlers discover your sitemap but don't guarantee crawling or indexing.
- Unsupported directives: Google ignores crawl-delay and doesn't support noindex, nofollow or other indexing directives in robots.txt. Some other crawlers read crawl-delay, host or clean-param, so the validator notes them without calling the file invalid.
- Google's file limits: Google reads at most 500 KiB of a robots.txt file and ignores the rest. This tool generates and validates files up to that size.
- Common mistakes: blocking the whole site with Disallow: / by accident (often left over from a staging site), blocking CSS, JavaScript or image folders that search engines need to render pages, using Disallow to remove indexed pages, misspelling directives, putting rules before any User-agent line, and expecting a named crawler group to inherit the * rules.
- RFC, Google and this tool: RFC 9309 defines the standard. Google documents its own, slightly more tolerant interpretation (for example it accepts some misspellings and reads only the leading product token of a user-agent value). This tool simulates both locally: a verdict is definitive only when they agree; otherwise it says the result can't be determined and explains why. It isn't a Google tool and can't see your live server, redirects or errors.
- Testing after publishing: after uploading, open /robots.txt on your domain in a browser to confirm it's served as plain text with a 200 status, and check the robots.txt report in Google Search Console. A server error or timeout when fetching robots.txt can make Google pause crawling.
Tips
- Keep robots.txt short: block only what crawlers really shouldn't fetch (internal search results, carts, endless filter combinations) and leave pages, CSS, JavaScript and images crawlable.
- Check titles and descriptions with the Google SERP Snippet & Meta Tag Preview (/marketing/serp-snippet-preview), add structured data with the Schema Markup & JSON-LD Generator (/marketing/schema-markup-generator), tag campaign links with the UTM Campaign URL Builder (/marketing/utm-builder), decode percent-encoded paths with the URL Encoder & Decoder (/text/url-encoder-decoder) or count words in page copy with the Word Counter (/text/word-counter).
How to create or check a robots.txt file
- Optionally enter your website origin — protocol, hostname and optional port — to see exactly where the file must be published.
- Edit the crawler groups: user-agent tokens (* for all crawlers) and Allow / Disallow path rules. Add, remove and reorder groups and rules, and add absolute sitemap URLs.
- Copy or download the generated robots.txt and upload it to the root of your host as /robots.txt.
- Paste an existing file into Validate to find syntax errors and risky rules, or use Test a URL to see which group and rule decide a URL for a crawler.
Frequently asked questions
Where do I put robots.txt?
At the root of each host, named exactly robots.txt, so it opens at /robots.txt directly under the domain. It applies only to that protocol, hostname and port; subdomains, http vs https and other ports each need their own file. A robots.txt in a subfolder is ignored.
Does Disallow remove a page from Google?
No. robots.txt controls crawling, not indexing, so a disallowed URL can still appear in search results without a description. To keep a page out of results, let it be crawled and add a noindex robots meta tag or X-Robots-Tag header.
Does Google support noindex or crawl-delay in robots.txt?
No. Google doesn't support noindex in robots.txt and ignores crawl-delay. Some other crawlers read crawl-delay, so this validator notes it as crawler-specific rather than an error.
Which rule wins when Allow and Disallow both match?
The most specific (longest) matching rule wins, wherever it appears in the file. If an Allow and a Disallow rule are equally specific, the Allow rule wins.
Does a crawler-specific group also follow the * rules?
No. A crawler that has its own group uses only that group (combined with any other groups naming it) and ignores the * group. Repeat any * rules you still want inside the specific group.
Is robots.txt a security measure?
No. The file is public and only cooperative crawlers follow it. Protect private content with authentication; listing secret paths in robots.txt makes them easier to find.
Why does the tester sometimes say the result can't be determined?
When RFC 9309 and Google's documented interpretation read a rule differently — for example a misspelled directive, a missing colon, a path without a leading slash or differently encoded characters — or a crawler might fall back to a broader group, the tool reports the difference instead of guessing a definitive result.
Is my robots.txt uploaded or fetched?
No. Generation, validation and URL testing all happen in your browser. Nothing is uploaded or stored, and the tool never fetches your site or its live robots.txt.
Related marketing and SEO tools
Related guides
- 8 min readHow to Block a Folder in robots.txt (and Why It Doesn't Keep Pages Out of Google)Block a folder with Disallow: /drafts/, test look-alike URLs before you upload, and see why robots.txt won't keep pages out of Google, and when to use noindex or a login.
- 6 min readHow to Track Two Links to the Same Page in One Email NewsletterTag a newsletter's hero button and footer link with the same source, medium and campaign, tell them apart with utm_content, and check both links before you send.
- 8 min readHow to Make a WhatsApp Link with a Prefilled MessageBuild a wa.me link that opens a chat with your number and a ready-typed message, write the number so it works, encode the text, and fix the usual reasons links fail.

