The robots.txt tester in Google Search Console no longer exists. Google retired it in November 2023 and replaced it with the robots.txt report, which shows whether Google could fetch your file and whether it found errors, but has no box where you type a URL and press “Test”.
So testing now takes up to three tools instead of one: the report for the file itself, URL Inspection for a single page, and Google’s open-source parser (or another tester) for a rule you haven’t published yet. This guide walks through all three in the order you’d use them.
What the robots.txt report does and doesn’t do
The robots.txt report lists the robots.txt files Google found for the top 20 hosts on your site. For each file you see the path, the fetch status, when Google last checked it, its size, and how many lines it couldn’t parse. You can open the last fetched version and the history of changes from the past 30 days.
Three limits catch people out:
- It only works on domain-level properties: a Domain property, or a URL-prefix property without a path, such as
https://example.com/. A property likehttps://example.com/blog/won’t show it. - It shows the file Google already has. It can’t test a draft.
- It doesn’t tell you whether a given page is blocked. That’s URL Inspection’s job.
The fetch status has three values. “Fetched” means Google got the file and uses every line it could parse, ignoring the rest. “Not Fetched, Not found (404)” means there is no file at that address, which Google treats as “crawl everything”. “Not Fetched, Any other reason” is the one to fix first, because a server error on robots.txt can stop Google crawling your site (more on that below).
Before you start
- Access to a Domain property, or a root URL-prefix property, in Search Console.
- A way to edit the file: your CMS’s SEO plugin, your host’s file manager, or FTP. On hosted builders such as Wix you may only get a settings screen, as Google’s update guide notes.
- A list of 3 to 5 URLs that matter most: your home page, a top service page, a page you meant to block.
How to test robots.txt now, step by step
- Load the live file. Open
https://yoursite.com/robots.txtin a browser, then check the status code withcurl -I https://yoursite.com/robots.txt. You want a 200. Google follows up to five redirects, treats a 404 or most other 4xx codes as “no restrictions”, and treats a 5xx as a reason to slow down. - Open the robots.txt report. In Search Console go to Settings and open the robots.txt report (Google’s help page also has a direct “Open robots.txt report” link). Find the row for
https://yoursite.com/robots.txt. Check that the status says Fetched, the “Checked on” date is recent, and the issues count is 0. - Read any issues. Click the row to see the file as Google fetched it, with problem lines flagged. Errors stop a rule from being used. Warnings don’t. A typo such as
Dissallow:is simply skipped, so the page it was meant to block stays open. - Inspect your key URLs. Paste each URL from your list into the URL Inspection bar at the top of Search Console. In the indexed result, the Crawl allowed? field says Yes or No. Click Test live URL to check the page as it stands today. There’s a daily limit on live tests per property, so save them for the URLs that matter.
- Test a new rule before you publish it. Neither Search Console tool accepts a draft. Run the draft through Google’s open-source parser (next section) or a third-party tester, against the same URLs.
- Publish, then refresh Google’s copy only if it’s urgent. Google caches robots.txt for up to 24 hours. If you’ve just unblocked important pages or fixed a fetch error, open the file’s menu in the report and choose Request a recrawl. Otherwise, wait.
Step 4 is the one to slow down on. The report can say Fetched with zero issues while a valid, perfectly parsed rule blocks your best page. Only a per-URL check catches that.
Test a draft rule with Google’s own parser
Google’s robots.txt help page points developers to its open-source robots.txt library, the C++ parser and matcher Google released so other tools can match how Googlebot reads the file. It’s free under the Apache license and includes a small command-line checker.
If you or a developer can build it (the README covers Bazel and CMake), testing a draft looks like this:
robots ~/drafts/robots.txt Googlebot https://ridgelineauto.com/account/login
It prints one line saying whether that user agent may fetch that URL, ending in ALLOWED or DISALLOWED, and exits with 0 or 1. That exit code makes it easy to loop over a list of URLs in a script before every deploy.
If building C++ isn’t realistic, use a web-based tester and paste your draft. Many are free. Pick one that says it follows Google’s parsing rules, and cross-check one tricky URL against URL Inspection after you publish. Bing Webmaster Tools still has a built-in tester with an editor, but it checks URLs as Bingbot and BingAdsBot, not Googlebot. Use it for Bing, not as proof of what Google will do.
Read the result the way Google does
Most surprises in a test come from three rules in Google’s robots.txt spec:
- The longest matching rule wins. Google picks the most specific path that matches. If an
allowand adisallowmatch with equal length, Google uses the less restrictive one, so the URL is allowed. - Paths are case-sensitive.
Disallow: /Account/doesn’t block/account/. Field names likeuser-agentaren’t case-sensitive. *and$are the only wildcards.*matches any run of characters, and$marks the end of the URL.Disallow: /*.pdf$blocks URLs ending in .pdf, but not/menu.pdf?v=2.
What can go wrong
The report isn’t in your Settings. You’re in a URL-prefix property with a path. Add a Domain property (verified by DNS) or a root URL-prefix property and the report appears there.
Your subdomain or http version isn’t covered. Rules apply only to the same protocol, host and port. book.yoursite.com needs its own file, and a 404 there means Google may crawl all of it. In fig 2, that’s the booking subdomain.
Status says “Not Fetched, Any other reason”. If Google gets a 5xx error, it stops crawling your site for 12 hours while it retries, then uses its last good copy for up to 30 days. If the errors run longer than that and the site is otherwise up, Google acts as if there’s no file. Fix the server or firewall rule that blocks Googlebot’s request, then request a recrawl. If a sitemap is failing at the same time, our guide to “Couldn’t fetch” sitemap errors covers the overlap.
A blocked page still shows in Google. That’s expected. Robots.txt isn’t a way to keep a page out of Google; a disallowed URL can still be indexed if other pages link to it. Use a noindex meta tag or header instead, and leave the page crawlable so Google can see it. The Page indexing report lists these under their own reason.
A rule you wrote seems ignored. Check for lines Google skips. crawl-delay isn’t supported by Google at all, and only user-agent, allow, disallow and sitemap count. Anything past 500 KiB is ignored too, though few small business sites come close.
You blocked a page from AI crawlers and Googlebot too. A user-agent: * group applies to every bot without its own group. If you’re adding AI bot rules, test Googlebot against the same URLs as well, and see our guide to blocking AI crawlers in robots.txt for which user agents do what.
FAQ
Does Google Search Console still have a robots.txt tester?
No. Google sunset the tester in November 2023, when it launched the robots.txt report. The report shows the file Google fetched and any parsing problems, but it can’t test a URL or a draft.
How long does Google take to see a new robots.txt file?
Google generally caches robots.txt for up to 24 hours, so changes are usually picked up within a day. For an urgent fix, use Request a recrawl in the robots.txt report, which speeds things up but doesn’t guarantee an immediate crawl.
How do I check if one page is blocked by robots.txt?
Run the URL through URL Inspection and look at Crawl allowed?. If it says No, a robots.txt rule is blocking Googlebot. Run Test live URL to check the current version after you’ve changed the file.
Run every important URL through the parser before each change
The old tester made robots.txt feel like a one-click check, and that’s the habit worth keeping. Write down the 3 to 5 URLs you can’t afford to block, test every draft against them before it goes live, then confirm one in URL Inspection the day after. It takes ten minutes and catches the one-character mistake that would otherwise pull your service pages out of the crawl.
