Robots.txt Tester
Paste your robots.txt, choose a crawler and list the URLs you want to check. The tester shows whether each URL is allowed or blocked, names the rule that decided it, and flags lines that crawlers ignore. It runs in your browser, so your file is never uploaded.
- ALLOWED
https://example.com/
No rule matches this URL, so it is allowed.
No group names this crawler, so the User-agent: * group was used.
- BLOCKED
https://example.com/private/notes.html
Disallow /private/ wins as the longest matching rule (9 characters).
No group names this crawler, so the User-agent: * group was used.
- ALLOWED
https://example.com/private/press/kit.html
Allow /private/press/ wins as the longest matching rule (15 characters).
No group names this crawler, so the User-agent: * group was used.
Matching rules: Disallow: /private/ | Allow: /private/press/
- BLOCKED
https://example.com/files/report.pdf
Disallow /*.pdf$ wins as the longest matching rule (7 characters).
No group names this crawler, so the User-agent: * group was used.
- ALLOWED
https://example.com/files/report.pdf?download=1
No rule matches this URL, so it is allowed.
No group names this crawler, so the User-agent: * group was used.
- BLOCKED
https://example.com/shop?id=4&sessionid=9
Disallow /*sessionid= wins as the longest matching rule (12 characters).
No group names this crawler, so the User-agent: * group was used.
Related Tools
[4 suggestions]Robots.txt Generator
Create valid robots.txt files with custom user-agents, allow/disallow paths, and sitemap directives.
SEO & MarketingXML Sitemap Generator
Convert a list of URLs into a valid XML sitemap, with URL checks, escaping and optional lastmod, changefreq and priority.
SEO & MarketingRedirect Rule Generator
Generate 301 and 302 redirect syntax for Apache .htaccess, NGINX, Next.js, and Cloudflare/Netlify.
SEO & MarketingMeta Tag Generator
Live-generate HTML title, meta description, and canonical link tags for page heads.
SEO & MarketingAbout the Robots.txt Tester
This tester applies the rules in RFC 9309, the Robots Exclusion Protocol, and the way Google documents its own behavior. For each URL it keeps every Allow and Disallow rule from the group that applies to the crawler and picks the rule with the longest matching path. If an Allow and a Disallow match equally, the Allow wins. An asterisk in a path matches any run of characters, a dollar sign at the end of a rule marks the end of the URL, an empty Disallow blocks nothing, and paths are case sensitive. Rules match from the start of the path, so Disallow: /admin also blocks /admin-guide, while Disallow: /admin/ does not block /admin. For the crawler name, the tester uses the group whose User-agent equals that name, ignoring case, and falls back to the User-agent: * group when no group names it. Groups with the same name are combined, and a named group does not inherit rules from the star group. Paste the file instead of fetching it, so you can test a change before you publish it. The tool also lists warnings, such as a Sitemap line that is not a full address, a path without a leading slash, a rule that comes before any User-agent line, a Crawl-delay line that Google ignores, and files over 500 KiB. It does not test noindex tags, which are a separate mechanism, and it follows the standard, so a crawler with its own quirks may differ in edge cases.
How does the tester decide between an Allow and a Disallow rule?▾
It picks the matching rule with the longest path. If an Allow and a Disallow are equally long, the Allow is used. The order of the lines in the file does not matter.
Does it fetch my live robots.txt file?▾
No. You paste the file, which lets you test a change before it goes live. Copy the current file from yourdomain.com/robots.txt if you want to test what is online now.
Does a blocked URL stay out of search results?▾
Not necessarily. Robots.txt controls crawling, not indexing. Google says it may still index a blocked URL without a snippet. To keep a page out of results, use a noindex tag and leave the page crawlable.
Which crawler name should I enter?▾
Use the name from the User-agent line you care about, such as Googlebot, Bingbot or GPTBot. Enter * to test the rules that apply to crawlers that have no group of their own.