About Robots.txt Analyzer
A robots.txt file is short, and one wrong line can hide a whole site from search. It is also easy to misread. The rule you think applies often does not, because crawlers pick a single group of rules and ignore the rest. This tool reads the file the way Google documents it, then lets you ask the question that matters: can this crawler fetch this URL, and which line decides?
Site owners usually arrive here after a page disappears from results, before launching a redesign, or when an old staging file might have gone live. Developers use it to try a rule before deploying it, since a mistake only shows up once crawlers have already acted on it.
You end up with a plain answer at the top, a live URL tester, a list of problems in order of seriousness, and each user agent group laid out so you can see who follows what.
How it works
The file is fetched from the root of the domain you enter, keeping its HTTP status, because status changes the meaning completely. A 404 means crawlers may fetch everything, which is safe. A 503 is the dangerous one: Google's documentation says it stops crawling for the first 12 hours, then relies on its last good copy for up to 30 days. Only the first 500 KiB is read, as Google ignores anything past that.
Parsing then follows Google's rules. Consecutive User-agent lines form one group, and comments or unsupported fields do not end it. Groups naming the same crawler are merged. Each crawler takes its most specific match, so googlebot-news falls back to googlebot and then to the star group. Within that group, the longest matching path wins, and Allow beats Disallow on a tie. Paths are case-sensitive, * matches any run of characters, and $ anchors the end of the URL. Rules with an empty path are skipped, which is why an empty Disallow: blocks nothing.
Matching runs in your browser with a linear matcher instead of regular expressions, so an unusual pattern cannot freeze the page. This is our implementation of the documented behavior, not Google's own software.
How to use Robots.txt Analyzer
- Enter a domain or page address under Live site, then press Read robots.txt. Entering a full page address also puts that page into the tester.
- To check a draft instead, choose Paste robots.txt, paste the text and press the same button.
- Read the finding at the top, then type paths or full URLs into Test a URL, one per line. Results update as you type.
- Change the Crawler menu to see how another bot is treated.
- Work through What to fix. Use Edit a copy and retest to try a change, then Download robots.txt when it behaves as you want.
The built-in example file
# Example shop
User-agent: *
Disallow: /cart/
Disallow: /checkout
Allow: /checkout/help
Disallow: /*?sort=
Disallow: /*.css$
Noindex: /old-campaign/
Crawl-delay: 10
User-agent: Googlebot
User-agent: Bingbot
Disallow: /search
Disallow: /internal/
User-agent: ExampleBot
Disallow: /
Sitemap: /sitemap.xmlGooglebot can crawl the site, apart from 2 paths
Allowed /cart/shoes No rule matches this path
Allowed /checkout/help No rule matches this path
Blocked /search?q=boots Disallow: /search on line 13
Allowed /shoes?sort=price No rule matches this pathLook at /cart/shoes. The file seems to block it, yet Googlebot may crawl it, because Googlebot has its own group and therefore ignores everything under the star. This mistake is common, and it is the first thing the tool flags for this file.
When it helps
- Finding out why a page shows in results as "No information is available for this page", which often means crawling is blocked.
- Checking the production file after a launch, when a staging
Disallow: /can slip through. - Testing a new wildcard rule for faceted URLs on a draft, before it can affect a live site.
- Confirming that Googlebot-Image can reach your image folder when the general rules are strict.
- Reviewing a client's site for rules that block CSS or JavaScript, which stop Google from rendering pages properly.
Tips for a better result
- Never use robots.txt to remove a page from search. A blocked page can still be indexed from links, and Google cannot see a noindex tag on a page it may not fetch. Use the Robots Meta Checker for that job.
- If you add a group for Googlebot, repeat every rule it should follow, since nothing carries over from the star group.
- Copy real URLs from your site into the tester, including query strings. Patterns such as
/*?sort=only match when the query is part of the test. - Keep your rules short. Google reads the file again about once a day, so plan for changes to take up to 24 hours.
Good to know
- It reflects Google's documented behavior. Other crawlers can interpret edge cases differently, and badly behaved bots ignore the file altogether.
- A file only covers its own host, protocol and port, so
blog.example.comneeds its own check. - It cannot tell you whether Google has actually indexed or crawled a URL. Search Console reports that.
- Sites that block automated requests may refuse the fetch, or show a block page. Copy the file from your browser and paste it instead.
- It encodes non-ASCII characters before matching but does not perform every URL normalization a crawler might, such as decoding escaped reserved characters.
Questions people ask
Is it bad if my site has no robots.txt?
No. Google treats a missing file, meaning a 4xx answer, as having no restrictions, and crawls normally. You only need one if there is something to keep crawlers away from, or you want a place to name your sitemap.
Why does a page blocked in robots.txt still show up on Google?
Blocking stops crawling, not indexing. If other pages link to the URL, Google can list it without knowing its content, usually with no description. To remove it, allow crawling and add a noindex rule, then block it later only if you still need to.
Does Crawl-delay slow down Googlebot?
No, Google ignores that field. Bing and some other crawlers honor it. Google's advice for an emergency is to temporarily answer with 500, 503 or 429, and to return to normal quickly, because lasting errors reduce crawling.
Which rule wins when Allow and Disallow both match?
The one with the longest path. If Disallow: /shop and Allow: /shop/sale both match, Allow wins for sale pages because its path is longer. If the two are exactly the same length, Allow wins. The tester names the winner and says how many rules matched.
Can I put noindex in robots.txt?
It has not worked since Google dropped support in 2019. The line is ignored, so those pages stay eligible for indexing. Move the instruction to a robots meta tag or an X-Robots-Tag header, on pages that crawlers are allowed to fetch.
What to use next
- XML Sitemap Analyzer: to check the sitemap your file points to
- Robots Meta Checker: when you want a page kept out of results, which robots.txt cannot do
- Redirect Chain Checker: if robots.txt itself redirects, since Google gives up after a limited number of hops
Learn more
Last reviewed . Read our editorial policy.