Robots.txt Tester
Paste your robots.txt, choose a user-agent and test URL path to see if it's allowed or blocked. Includes syntax validation, rule parsing, and group visualization.
Robots.txt Content
Test a URL Path
/, e.g., /blog/post or /admin/loginParsed Groups
Paste a robots.txt above to see parsed rule groups.
How Robots.txt Works
When a crawler visits your site, it first checks your robots.txt file at https://yoursite.com/robots.txt to see which paths it's allowed to request. The parser evaluates rules using the longest matching path principle: the most specific rule for the matching user-agent wins.
Why Robots.txt Matters for SEO
Properly configured robots.txt files are essential for technical SEO because they:
- Manage crawl traffic — Prevent search engines from wasting resources on admin pages, duplicate content, or infinite URL spaces (search results, calendars, filters)
- Control AI crawler access — Many AI training bots respect robots.txt directives, making it one method to opt out of having your content used for model training. For search-specific AI products, different bots (OAI-SearchBot, Claude-SearchBot) serve different purposes.
- Direct crawlers to sitemaps — The
Sitemap:directive in robots.txt is one of the primary ways search engines discover your XML sitemaps - Set crawl rate expectations — The
Crawl-delaydirective (supported by Bing, Yandex, and others) prevents server overload from aggressive crawlers. Google does not support Crawl-delay and automatically adjusts its crawl rate.
Common Syntax Rules
- Each block starts with
User-agent: Disallow:blocks paths —Disallow: /blocks everything.Allow:overrides a Disallow for more specific paths.- An empty
Disallow:rule (no path after the colon) has no blocking effect. It does not cancel other rules in the group. UseAllow: /to explicitly grant access. Crawl-delay:sets delay between requests. Google does not support this directive.Sitemap:points to your XML sitemap location.- Lines starting with
#are comments. - User-agent
*acts as a wildcard matching all bots without specific rules.
Common Mistakes
- Using noindex in robots.txt — The
noindexdirective is not part of the robots.txt standard. Use<meta name="robots" content="noindex">orX-Robots-Tag: noindexHTTP header instead. - Blocking CSS/JS files — Google needs these for rendering. Blocking them can hurt your mobile-first indexing and rankings.
- Using incorrect line endings — Use standard Unix (LF) or Windows (CRLF) line endings. The parser normalizes both; neither causes problems.
- Placing Sitemap inside user-agent blocks — Sitemap directives should be at the file level, not inside specific user-agent groups.
- Assuming specific user-agents inherit wildcard rules — Googlebot uses only its own rules and does NOT inherit restrictions from the wildcard (*) group.
Frequently Asked Questions
Suggested Workflow
Manage how search engines crawl your site with our Crawl Control Workflow — a step-by-step guide to configuring robots.txt, sitemaps, and crawl rate settings.
Reviewed Jun 2026 · Sources and limitations
Review details: 2026-06-12 · Marc LaClear · v1.2
Reference sources:
- RFC 9309 — Robots Exclusion Protocol
- Google robots.txt specification
- Google robots.txt report and testing guide
- OpenAI crawler documentation
- Anthropic crawler documentation
Known limits:
- This tool parses and tests robots.txt rules based on pasted text — it does not fetch or validate live robots.txt files from your site.
- The parser implements RFC 9309 rules plus Google-specific behavior. Results may differ from other parsers.
- Some AI crawlers may ignore robots.txt directives entirely. A "blocked" result here does not guarantee the crawler will respect it.
- Test results are diagnostic aids, not guarantees. Validate critical access rules with Google Search Console and live crawl data.