About the Robots.txt Tester
Enter a website to check its robots.txt, or paste your own file to validate it before uploading. You get an instant report covering syntax errors, whole-site blocks, blocked CSS and JavaScript, sitemaps, file size and AI crawlers. Then test any list of URLs to see whether each one is allowed or blocked, and which line decided it, using the same matching rules as Google.
Key features
- Check any site's live robots.txt, or paste your own to validate it
- Instant report: syntax errors, whole-site blocks, CSS/JS, sitemaps
- Test hundreds of URLs at once
- Choose Googlebot, Bingbot, AI crawlers or any bot
- Shows the exact line that allowed or blocked each URL
- Google's matching rules: longest match, wildcards and $
Check and validate robots.txt in one place
One misplaced slash in robots.txt can block your whole site, or fail to block the pages you meant to hide. This robots.txt checker does two jobs:
- Validates the file. Enter a domain or paste a robots.txt, and the report flags syntax errors, rules that block search engines from the whole site, blocked CSS and JavaScript, missing or invalid sitemap lines, unsupported directives and files over Google's size limit.
- Tests URLs. List any URLs or paths, pick a crawler and see allowed or blocked for each one, with the line responsible.
What the report checks
| Check | Why it matters |
|---|---|
| Syntax | Lines that aren't field: value, or rules before any User-agent, are ignored by crawlers |
| Whole site blocked | Disallow: / for Googlebot or Bingbot removes pages from search over time |
| CSS and JavaScript | Google renders pages like a browser; blocked assets can hurt rankings |
| Sitemap | A Sitemap: line with a full URL helps every crawler find your pages |
| Unsupported rules | Noindex: in robots.txt has been ignored by Google since 2019 |
| Crawl-delay | Respected by Bing and Yandex, ignored by Google |
| File size | Google stops reading after 500 KiB |
| AI crawlers | Shows which AI bots, such as GPTBot and ClaudeBot, are blocked |
Matching rules (RFC 9309)
| Rule | Example | Matches |
|---|---|---|
| Prefix match | Disallow: /admin | /admin, /admin/, /administrator |
| Folder only | Disallow: /admin/ | /admin/ and below, not /administrator |
| Wildcard | Disallow: /*?sort= | Any URL with ?sort= |
| End anchor | Disallow: /*.pdf$ | URLs ending in .pdf, not .pdf?x=1 |
| Empty | Disallow: | Nothing (allows everything) |
Example
User-agent: *
Disallow: /admin/
Allow: /admin/help/
| URL | Result | Why |
|---|---|---|
| /admin/settings | Blocked | Disallow: /admin/ |
| /admin/help/faq | Allowed | Longer Allow: /admin/help/ wins |
| /about | Allowed | No rule matches |
Common robots.txt mistakes
- Leaving a staging file live.
User-agent: *followed byDisallow: /is right for a test site and disastrous on a live one. It's the most common cause of a site vanishing from search after a launch. - Blocking theme or asset folders. Old WordPress advice to block
/wp-includes/or/wp-content/stops Google from loading your CSS and JavaScript. - Using robots.txt to hide pages. Blocked pages can still be indexed from links, and the file is public, so it advertises the paths you list. Use
noindexor a login instead. - Forgetting that paths are case-sensitive.
Disallow: /Private/doesn't block/private/. - Expecting a separate group to inherit the
*rules. Once you add aUser-agent: Googlebotgroup, Googlebot ignores the*group entirely, so repeat any rules it should follow. - A relative sitemap URL.
Sitemap: /sitemap.xmlis invalid; use the fullhttps://address.
AI crawler user agents
| User agent | Used for |
|---|---|
| GPTBot | OpenAI model training |
| OAI-SearchBot | ChatGPT search results |
| ClaudeBot | Anthropic model training |
| Google-Extended | Gemini training (doesn't affect Google Search) |
| PerplexityBot | Perplexity search |
| CCBot | Common Crawl dataset |
Select any of them in the User agent list to see exactly what they can crawl on your site.
Testing tips
- Test your most important pages first: home, category and product pages.
- Test with Googlebot and
*, as other search engines may fall back to*. - Re-test after every change. A new wildcard can block more than you expect.
- Validate before you upload. Paste the new file here first, then use Google Search Console's robots.txt report to confirm what Google fetched.
Related tools
Create a robots.txt with the Robots.txt Generator, check a page's meta robots tag with the Meta Tag Checker, or build a sitemap with the XML Sitemap Generator.
How to use the Robots.txt Tester
- Enter the address of the page or website you want to check.
- Click the button. Our server fetches the public page (it can't reach private or local addresses).
- Review the results, starting with anything marked in red or amber.
- Fix the issues on your site, then run the check again to confirm.