Robots.txt checker
This free robots.txt checker tests whether a crawler such as Googlebot is allowed or blocked on a URL. Paste your robots.txt, enter the URL and a user-agent, and it shows the rule that decided and any lines that won't work.
Result
How to check your robots.txt file
A robots.txt file tells crawlers which URLs they may fetch. It sits at the root of a host, for example https://example.com/robots.txt, and applies only to that host, protocol and port. Checking it takes four steps:
- Open the file. Type your address followed by
/robots.txtinto a browser. A page of plain text is the file. A 404 means there isn't one, and crawlers treat that as no restrictions. - Paste it into the box above. Copy all of it, including the
Sitemap:lines. - Enter the page you want to test and a crawler. Use the full URL, or just the path. Leave the user-agent as Googlebot for Google, or type another name.
- Read the verdict. The result says allowed or blocked, the group of rules it used and the exact line that decided. Lines the checker flags are ones Google ignores.
Because the checker works on text you paste, you can try a change before you upload it. That also means it tests the copy you pasted, not what your server serves right now, so paste a fresh copy if the file has changed.
How a robots.txt tester decides
This checker follows the rules Google documents for how it reads robots.txt. In order:
- Pick the group. Rules are written in groups, each starting with one or more
User-agent:lines. The crawler uses the group with the most specific matching name, and falls back to the*group if none matches. Names are not case-sensitive. If several groups name the same crawler, their rules are merged. - Find every matching rule. An
AlloworDisallowrule matches when the URL's path (with its query string) starts with the rule's path.*stands for any run of characters and$at the end means the URL must end there. Paths are case-sensitive. - The longest rule wins. The most specific rule, meaning the one with the longest path, decides. If an
Allowand aDisallowtie on length,Allowwins. If nothing matches, the URL is allowed. An emptyDisallow:blocks nothing. Google also readsAllow: /folder/index.htmlas allowing/folder/itself.
A worked example, using the file the example button fills in:
User-agent: * Disallow: /private/ Allow: /private/press/
| URL path | Rules that match | Decided by | Result |
|---|---|---|---|
/private/press/kit.html | Disallow /private/ (9 characters), Allow /private/press/ (15) | The longer rule, Allow | Allowed |
/private/data.csv | Disallow /private/ | The only match | Blocked |
/blog/ | None | No rule | Allowed |
Rules are from Google's documentation of how it interprets robots.txt and its open-source robots.txt parser, checked 23 October 2026. Other crawlers can read the same file a little differently.
Common robots.txt mistakes the checker catches
The checker reads the whole file as it tests, and lists lines that will not do what they look like they do:
| Problem | What happens | Fix |
|---|---|---|
A rule before any User-agent: line | It belongs to no group, so it is ignored. | Put a User-agent: line above it. |
A path that doesn't start with / or * | It can never match a URL path. | Start the path with /. |
Crawl-delay | Google doesn't support it. Some other crawlers read it. | Remove it if Google is the only crawler you care about. |
| A directive Google doesn't know | Invalid or unsupported lines are ignored. | Check the spelling, or remove the line. |
| A file over 500 KiB | Google ignores content after that limit. | Shorten the file, or use wildcards in place of long lists. |
| A missing colon | Google still reads a two-word line such as Disallow /, but ignores a longer one, and other crawlers may ignore both. | Write Directive: value. |
| A misspelled directive | Google accepts a few common misspellings, such as Useragent and Disalow. Other crawlers may not. | Spell it User-agent or Disallow. |
Blocking crawling is not the same as blocking indexing. Google says robots.txt is not a mechanism for keeping a page out of Google: a blocked URL can still show up in results if other sites link to it, without a description. To keep a page out of search, use a noindex tag or password protection, and leave the page crawlable so the tag can be read.
Check AI crawlers, Googlebot and Bingbot
Every crawler reads the same file, so you test a different one by changing the user-agent box. Type GPTBot, ClaudeBot, PerplexityBot or Bingbot and the checker applies the group written for that name, or the * group if there isn't one. The checker matches the name you type exactly. It doesn't know which crawlers a vendor lets fall back to another one's group, so test the name the vendor documents.
A robots.txt file states what you want, and well-behaved crawlers follow it. It doesn't prove a crawler did. Our guide to AI crawlers lists each bot's name, who runs it and what it is for, and says which ones fetch pages on a person's request and may not apply robots.txt. To see who actually visited, read your server logs or a bot report: the bot traffic guide covers how to tell bots from people.
After you've checked robots.txt
This tool tells you what your file says. For what Google has actually seen, Google Search Console has a robots.txt report, which shows the files Google found for your site, when it last crawled them and any warnings or errors, and a URL inspection tool that tests a single URL.
Blocking crawling can affect search traffic because Google cannot fetch the page's content, but the URL can still appear in results. When traffic falls after a robots.txt change, why website traffic drops walks through what to look at next. To see how many visits each page and channel brings in once crawling is fixed, that is what Stickybeak is for: live analytics for every site you own, in early access.
Questions
How do I check my robots.txt file?
Open yoursite.com/robots.txt in a browser, copy what it shows, paste it into the box above, enter a page URL and pick a crawler. The checker says whether that crawler is allowed or blocked and which line decided it. It also lists lines that Google ignores, such as rules placed before any user-agent line.
How do I test if Googlebot can crawl a URL?
Put your robots.txt in the box, enter the full URL, and leave the user-agent as Googlebot. If the answer is allowed, your robots.txt does not stop Googlebot fetching that URL. For what Google itself last saw, Google Search Console has a robots.txt report, and its URL inspection tool can test whether a specific URL is blocked.
Is there a Google robots.txt checker?
Google Search Console shows which robots.txt files Google found for your site, when it last crawled them and any warnings or errors. Its URL inspection tool tests a single URL. This checker works on text you paste, so you can try a change before you upload it.
Where is the robots.txt file?
At the root of the host, for example https://example.com/robots.txt. A robots.txt file only applies to the host, protocol and port it is served from, so a subdomain such as blog.example.com needs its own file.
Which rule wins when Allow and Disallow both match?
For Google, the most specific rule wins, which means the one with the longest path. If an Allow and a Disallow match with the same length, the less restrictive one, Allow, wins. The checker follows the same order and shows you the rule it used.
Does blocking a page in robots.txt remove it from Google?
No. Google says robots.txt is not a mechanism for keeping a web page out of Google. A blocked page can still appear in results if other sites link to it, without a description. To keep a page out of search, use a noindex tag or password protection, and leave the page crawlable so the tag can be read.
Can I use this to check GPTBot, ClaudeBot or other AI crawlers?
Yes. Type the crawler's user-agent name, such as GPTBot, into the user-agent box and the checker applies the group written for that name, or the * group if there is none. It shows what your file says, not whether a crawler obeys it. Our guide to AI crawlers lists the names and what each one is for.
Does this checker save or send what I paste?
No. The matching runs in your browser. Nothing you paste is sent anywhere or stored.