Robots.txt Tester
Read a site's robots.txt, check it for mistakes and test whether Googlebot, Bingbot, GPTBot or any crawler may fetch a URL.
This site's server fetches the address you enter, like a search engine would. It sends no cookies, only reaches public websites, and keeps nothing.
How to use the robots.txt tester
- Enter a site (
example.com) or a page on it (example.com/blog/post). - Choose the crawler to test: Googlebot, Bingbot, an AI crawler, or any other.
- Choose Test robots.txt. You see whether the page may be crawled, the rule that decides, and every mistake in the file.
- Type other paths in the test box to try them instantly, without fetching the file again.
How crawlers read robots.txt
This tester follows the robots.txt standard (RFC 9309) and Google's documented behaviour:
- A crawler follows only the one group whose
User-agentmatches it most specifically, for exampleGooglebot-Image, thenGooglebot, then*. Groups for the same crawler are combined. - Within that group the longest matching rule wins, and
Allowwins a tie. *matches anything,$anchors the end, and an emptyDisallow:allows everything.Crawl-delay,HostandNoindexare flagged: Google ignores them.
Frequently asked questions
How do I test my robots.txt file?
Enter your site or any page on it, pick a crawler and choose Test robots.txt. The tool reads /robots.txt from that site, lists any mistakes, and tells you whether the crawler may fetch the page, quoting the rule that decides. You can then test other paths instantly.
Which rule wins when Allow and Disallow both match?
The longest (most specific) rule wins. If an Allow and a Disallow rule are the same length, Allow wins. That is how Google and Bing read robots.txt, and how this tester reads it.
Do * and $ work in robots.txt?
Yes, for Google, Bing and most major crawlers. * matches any characters and $ marks the end of the address, so "Disallow: /*.pdf$" blocks every PDF.
Does robots.txt keep a page out of Google?
Not reliably. It stops crawling, but a blocked page can still be listed (without a description) if other sites link to it. Use a noindex tag to keep a page out of results, and do not block that page in robots.txt.
What happens if my robots.txt is missing?
If /robots.txt answers 404, crawlers may fetch everything. If it answers a server error (5xx), Google stops crawling the site until it can read the file, so a broken robots.txt is worse than none.
How do I block AI crawlers?
Add a group for each one, for example "User-agent: GPTBot" followed by "Disallow: /". Test it here with GPTBot or CCBot selected, or build the file with the Robots.txt Generator.
Related tools
Browse all tools- Robots.txt Generator Build a correct robots.txt: allow or block crawlers, block AI bots, keep private folders out of search and add your sitemap.
- Indexability Checker Find out whether Google (or another search engine) can index a page: robots.txt, noindex tags and headers, status codes, redirects and canonical.
- XML Sitemap Validator Find and validate a site's XML sitemap: format, URL count, addresses, lastmod dates and sitemap indexes, with the problems search engines care about.
- SEO Checker Audit any web page for SEO: title, meta description, headings, indexing, canonical, speed, mobile, structured data and social tags, with a score and fixes.
- Broken Link Checker Check every link on a page and find the broken ones: 404s, server errors, dead domains and redirect chains, with optional image checks.
- Open Graph Checker Preview how a link looks when shared on Facebook, X, LinkedIn and WhatsApp, and check its Open Graph and Twitter card tags and image.