Free tool
Free robots.txt tester for Google and AI crawlers
See exactly which pages Googlebot, Bingbot, GPTBot, PerplexityBot and other crawlers may read. Fetch your live file or paste a draft, then test any page.
What this robots.txt checker does
Your robots.txt file sits at yoursite.com/robots.txt. It tells crawlers which parts of your website they may read. One wrong line can hide your whole site from Google or from AI tools such as ChatGPT search, so it is worth checking after every change.
- Fetch result. We read your live file and explain the answer. A 404 means there is no file, so every page may be crawled. A server error (5xx) is worse: Google treats it as if the whole site were blocked until it can read the file again.
- Line-by-line check. We number every line and flag typos such as "Dissallow", rules that sit outside a User-agent group, Sitemap lines that are not full addresses, and rules Google ignores, such as Crawl-delay and noindex.
- Crawler test. Pick a crawler and type a page path. We show Allowed or Blocked and highlight the exact line that decides it. You can also open a list of every crawler at once.
How crawlers read robots.txt
The rules are an internet standard, RFC 9309, published in September 2022. A crawler first looks for a group that names it, such as User-agent: GPTBot. Only if there is none does it follow the User-agent: * group. It never combines the two.
Inside its group, the crawler uses the most specific rule: the Allow or Disallow line with the longest matching path. So Allow: /search/help beats Disallow: /search for the help pages. If an Allow and a Disallow are the same length, Google picks Allow. A * matches any characters and a $ marks the end of the address.
Google reads only the first 500 KB of the file and ignores the rest. It follows at least five redirects to find it, and it usually refreshes its saved copy within 24 hours, so a fix can take a day to show.
How to fix common problems
- Whole site blocked. Disallow: / under User-agent: * blocks everyone. It is often left over from a staging site. Delete the line or change it to Disallow: with nothing after it.
- Important pages blocked. Test your homepage, service pages and blog. If a rule catches them, make it more specific or add a longer Allow line.
- CSS and JavaScript blocked. Google needs these files to see your pages as visitors do. Don't block folders such as /wp-content/ or /assets/.
- No Sitemap line. Add Sitemap: https://yoursite.com/sitemap.xml at the end. Check that file with our sitemap checker.
- Trying to hide a page from Google. robots.txt stops crawling, not indexing. Use a noindex robots meta tag instead, and leave the page crawlable so Google can see it.
Want to know which AI tools you block, in plain words? Try the AI crawler checker. For a full picture of how Google and AI see your site, run the free website check, or start a 7-day free trial to monitor it every week.
Get one easy tip a week
We'll email you one simple fix each week to help Google and AI find your business. No spam. Leave any time.
Robots.txt questions
Do I need a robots.txt file?
No. Without one, crawlers may read every page, which is fine for most small business websites. Add a file when you want to keep crawlers out of areas like a shopping cart or internal search, or to list your sitemap address.
Does blocking a page in robots.txt remove it from Google?
Not always. Robots.txt stops Google from reading a page, but Google can still list the address if other sites link to it, just without a description. To keep a page out of results, let Google crawl it and add a noindex robots meta tag.
Which rule wins when Allow and Disallow both match?
The longest matching rule wins, because it is the most specific. For example, Allow: /blog/news beats Disallow: /blog for the news pages. If both rules are exactly the same length, Google follows the Allow rule. This tester applies the same logic and highlights the winning line.
Why does my User-agent: * rule not apply to GPTBot?
Because a crawler that has its own group ignores the * group completely. If your file has a User-agent: GPTBot group, GPTBot follows only those lines. Copy any rules you still want, such as Disallow: /cart/, into that group too.
Is it safe to paste my robots.txt here?
Yes. Pasted text is checked inside your browser and never leaves your device. When you fetch your live file instead, we read only /robots.txt from your site, show it to you and don't store it. You can run up to 20 fetches an hour.