Robots.txt Tester
See which crawlers may fetch a page. Enter a site and a path, and the tester reads the site's robots.txt, applies the rules the way Google does, and shows the answer for search, ads and AI crawlers. It also reads the sitemaps. Or paste a robots.txt to test it before you publish it.
A path like /blog/post?page=2. A whole address works too.
Its user agent token, to get a row of its own.
TechCompare's server fetches the site's robots.txt and sitemap files, and loads a small sample of the listed pages to check redirects. See the privacy policy.
Check a site
Type a domain above, or try one of these. Nothing is sent until you press Check.
How to use this tool
Enter a site and a path
Type a domain like example.com, or paste the address of a page, and the path fills in for you. Use the host the page is served from, since www.example.com and example.com can have different files.
Pick a crawler
The table covers the main search, AI and ads crawlers. To put one first, type its robots.txt name, like GPTBot or Googlebot. Any name works, also one that isn't in the list.
Read the table
Each crawler shows allowed or blocked, with the rule that decided it. Open the file viewer to see the line in context. Lines the crawlers ignore, like a typo in a field name, are marked.
Check the sitemaps
The sitemap card lists each file with its URL count, size and lastmod problems, and says how many of its URLs your rules block. The redirect card follows a sample of those URLs and shows the ones that moved or failed.
About this tool
This tester fetches a site's robots.txt from TechCompare's server and works out which crawlers may fetch a path, using the rules in RFC 9309 and the way Google reads them. It names the line that decided each verdict, so you see why a crawler is allowed or blocked and not only that it is.
It also reads the sitemaps the file lists and checks them against the rules. Your browser does the rule matching, so you can change the path or the crawler without another request. A robots.txt you paste in is read in your browser and goes nowhere.
How a crawler picks its rules
A robots.txt file holds groups, and each group starts with one or more user agent lines. A crawler follows the group that names it. If none does, it follows the * group. It never mixes the two, which is why adding a group for one crawler can make the rules under * stop applying to it. Groups for the same name are merged. Names match without regard to case. A few crawlers have their own habits, like AdsBot ignoring the * group, and the table notes them where the owner says so.
What happens when two rules match
Inside the group a crawler picked, the longest matching pattern wins, and Allow wins a tie. Patterns match from the start of the path, so Disallow: /private also blocks /private-notes. The * matches any run of characters and $ ends the match. Paths are case sensitive, and a query string counts as part of the path. The file viewer marks the deciding line, and lines that crawlers ignore get a warning.
When robots.txt is missing or broken
A missing file, a 404 or any 4xx other than 429, means no rules. A server error means the opposite. RFC 9309 tells crawlers to treat the whole site as off limits. The tester shows the status and says which of the two applies. It also warns about a file over 500 KiB, since Google ignores everything past that point.
Sitemaps and the redirect sample
The tester reads the sitemaps your robots.txt lists, or tries /sitemap.xml when it lists none. For each file it checks the 50,000 URL and 50 MB limits, the XML, and the lastmod dates. Then it tests the URLs against the rules for every crawler in the table. Last, it fetches a sample of 10 of those URLs and reports any that redirect or fail. It is a sample, so a clean result doesn't cover every URL.
Control tokens and AI crawlers
Some names in a robots.txt aren't crawlers. Google-Extended and Applebot-Extended only decide how content that was already crawled gets used, and neither one changes how a site shows in search. The table puts them in their own section. The AI crawlers sit apart from the search ones, since you can block training and stay in search. Each row links to the page its owner wrote.
Robots.txt and sitemap guides
How each rule works, what a failing check means and how to fix it.
Frequently asked questions
Does robots.txt keep a page out of Google?
Which rule wins when two rules match?
What does it mean when robots.txt is missing or returns an error?
Which crawler names do AI companies use?
Why does the check take a while?
Why is the redirect check only a sample?
Can I test a robots.txt before I publish it?
Why can't I check the same site many times in a row?
Related tools
Open Graph Visualizer
Preview how your website links will look when shared on Google, Twitter, Facebook, and Discord.
Use toolSSL Checker
Check a site's certificate, TLS versions, HTTP/2 and HTTP/3 support, post-quantum key exchange, HSTS and redirects, or compare two sites.
Use toolDNS Lookup
Look up a domain's DNS records on Cloudflare or compare several resolvers at once, and read its SPF, DMARC and DKIM records in plain words.
Use toolJSON Formatter
Validate, format, and minify JSON. Browse it as a tree, run JSONPath queries, compare two documents, or validate against a JSON Schema.
Use tool