Robots.txt Generator & Tester
Generate a correct robots.txt, then verify exactly how crawlers interpret it — longest-match rules included.
User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php
The tester evaluates the rules you paste against the paths you enter — entirely in your browser. It does not crawl external websites and is not Google’s live crawler.
Scope of the tester
The tester parses the rules you paste and simulates how a compliant crawler would evaluate the paths you enter. It performs no network requests — nothing is fetched, crawled or uploaded. That makes it safe for testing draft files, staging rules, or hypothetical changes before they go anywhere near production.
Rule evaluation, precisely
- Group selection. Rules apply per user-agent group. A specific group (Googlebot) fully replaces the * group for that bot; the two are not merged.
- Longest match wins. Among all matching Allow/Disallow patterns, the one whose path matches the most characters decides the outcome.
- Allow wins ties. If the longest Allow and the longest Disallow match the same length, the crawler may fetch the URL.
- Empty Disallow. Disallow: with no path allows everything — commonly used to grant full access after more specific groups.
- Wildcards & anchors. * matches any sequence of characters; $ marks the end of the path. /cart$ blocks only the exact path /cart, not /cart/item/1.
Frequently asked questions
What does robots.txt actually control?
How does the tester decide between Allow and Disallow?
Does this tool crawl my website?
Should every site have a robots.txt file?
Where do I upload the generated file?
Related free tools
More utilities in the WebDesignKw toolbox.
Put this into practice
Services that do this for you
Keep reading
Want results instead of numbers?
Our team builds and manages the systems behind these metrics — websites, campaigns and SEO that compound.
Get Started Today