Quick answer
Paste your robots.txt rules, enter a URL path and choose a crawler such as Googlebot, Bingbot or GPTBot. The tester tells you whether that path is allowed or blocked and which rule decided it. Remember that robots.txt controls crawling, not indexing, so a blocked URL can still appear in search results.
What the Robots.txt Tester checks
A robots.txt file sits at the root of a domain and tells crawlers which paths they may request. One wrong line can stop search engines from crawling a whole section of a site. This tool reads the rules you paste, groups them by user agent, and lets you test a path against a chosen crawler. It reports ALLOWED or BLOCKED, shows the rule that matched, counts the directives it parsed and confirms basics such as valid User-agent lines and a Sitemap directive.
You can test against common search crawlers (Googlebot, Bingbot, Googlebot-Image) and AI crawlers (GPTBot, ClaudeBot, PerplexityBot, CCBot), or the wildcard group (*).
How to use it
- Open yoursite.com/robots.txt in a browser and copy the full file, or use the fetch option if available.
- Paste it into the rules box. Keep the order and comments as they are.
- Enter a path to test, starting with a slash, for example /blog/post-1 or /checkout.
- Choose a user agent. Test your most important crawler first, then any AI crawler rules you have added.
- Read the result and the matched rule. Repeat for your key page types: home, category, product, blog and any parameter URLs.
How matching works
These rules follow how Google documents robots.txt handling:
- One group per crawler. A crawler follows the most specific User-agent group that matches its name. If Googlebot has its own group, it ignores the * group entirely.
- Longest match wins. When several Allow and Disallow rules match a path, the rule with the longest matching path applies. If an Allow and a Disallow match with equal length, Google uses the less restrictive one (Allow).
- Wildcards. * matches any sequence of characters, and $ marks the end of the URL. Disallow: /*.pdf$ blocks URLs ending in .pdf.
- Case and prefixes. Paths are case-sensitive and match from the start. Disallow: /admin also blocks /admin-panel and /administrator.
- Empty Disallow. "Disallow:" with no path means nothing is blocked for that group.
How to read your results
Use this as general guidance when reviewing each test:
| Result | What it means | What to check |
| Allowed, page should rank | Working as intended. | Nothing; move to the next path. |
| Blocked, page should rank | A rule is stopping crawling of a page you want found. | Find the matched rule and narrow it or add a longer Allow. |
| Allowed, page should be private | Crawlers can request it. | Use authentication or noindex, not only robots.txt. |
| Blocked for an AI crawler | That bot is asked not to crawl the path. | Confirm this matches your policy on AI search visibility. |
Crawling is not indexing
Blocking a URL in robots.txt stops compliant crawlers from fetching it, but Google can still index the URL without its content if other pages link to it. To keep a page out of search results, allow crawling and use a noindex meta tag or header instead, since Google must crawl the page to see noindex. Robots.txt is also public and voluntary, so never rely on it to hide sensitive content.
What to do next
Limits of this tool
The tester checks the text you paste. It cannot confirm that your live file is reachable, returns the right status code or is the version crawlers last fetched. Different crawlers may interpret edge cases differently, and some bots ignore robots.txt altogether. It does not check meta robots tags, canonical tags or server rules. After editing robots.txt, confirm the live version in Google Search Console's robots.txt report.
More questions
Where must the robots.txt file be located?
It must sit at the root of the host, such as https://www.example.com/robots.txt. A file in a subfolder is ignored. Each subdomain and protocol needs its own file, so shop.example.com and www.example.com are treated separately. Make sure the file returns a normal 200 status when you open it.
Should I block AI crawlers like GPTBot in robots.txt?
It depends on your goals. Blocking a crawler asks that company not to use your pages, but it may also reduce the chance your content is referenced in that AI tool's answers. Many sites allow AI search crawlers while blocking private areas. Decide per bot, then test each rule here.
Why is a URL blocked in robots.txt still showing in Google?
Robots.txt stops crawling, not indexing. If other pages link to a blocked URL, Google may index the address without reading its content, often showing a result with no description. To remove it, allow crawling and add a noindex tag, then wait for Google to recrawl the page.
Does Google support the crawl-delay directive?
No. Google ignores crawl-delay in robots.txt. Some other search engines may honor it. If Googlebot is putting too much load on your server, Google's documentation recommends temporary server responses such as 503 or 429 rather than robots.txt changes. Fixing slow pages usually helps more than limiting crawlers.
Should I include my sitemap in robots.txt?
Yes, it is a good habit. A Sitemap line with the full absolute URL helps crawlers find your sitemap even if it has not been submitted in their webmaster tools. You can list more than one sitemap, and the line can appear anywhere in the file because it is not tied to a user-agent group.