Back

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

  1. 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.

  2. 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.

  3. 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.

  4. 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?
No. It asks crawlers not to fetch the page. Google says a page blocked this way can still appear in results, for example when other pages link to it, and that a crawler which can't fetch the page never sees a noindex rule on it. To keep a page out of results, let Googlebot crawl it and add noindex. This tester reads robots.txt rules only, so it can't see meta tags or headers.
Which rule wins when two rules match?
The longer pattern wins, since it's the more specific one. When two rules are the same length, Allow wins. The order of the lines doesn't matter, and rules only compete inside one group. A crawler reads the group that names it, or the * group when none does, and never both. The table names the line that decided each verdict.
What does it mean when robots.txt is missing or returns an error?
A 404, or any 4xx other than 429, means no rules, so crawlers may fetch everything. A 5xx means the opposite: RFC 9309 says to assume the whole site is off limits, and Google stops crawling for the first 12 hours while it retries the file. Google doesn't say what it does with a 429, so this tester treats it like a server error and says so on the page.
Which crawler names do AI companies use?
Each one lists its own names. OpenAI uses GPTBot for training, OAI-SearchBot for ChatGPT search and ChatGPT-User for visits a person asks for. Anthropic uses ClaudeBot, Claude-SearchBot and Claude-User. Google-Extended and Applebot-Extended are control tokens, not crawlers, and they only decide how data that was already crawled gets used. The table puts each name in its kind and links to the owner's page.
Why does the check take a while?
The server fetches robots.txt, then reads the sitemaps it lists, then fetches a sample of the pages those sitemaps point to. A site with large sitemaps can take up to a minute. The answer comes back in one piece, so the page shows a progress card until it's done.
Why is the redirect check only a sample?
Fetching every page in a sitemap with tens of thousands of URLs would put a heavy load on the site. The tester picks 10 URLs spread over the list and fetches those. If they all answer cleanly, that's a good sign. It can't promise that every URL does, so treat a clean sample as a hint.
Can I test a robots.txt before I publish it?
Yes. Switch to Paste a file, paste the text, and pick a path and a crawler. The file is read in your browser and isn't sent anywhere. The same table and line viewer show which rule decides each verdict, so you can try changes before they go live.
Why can't I check the same site many times in a row?
One check fetches robots.txt, up to ten sitemap files and a sample of ten pages from the site. So each visitor gets 6 checks in a row, then one more every 20 seconds, and only a few checks run at once across the whole site. A busy moment shows a wait message with a time to try again.