Robots.txt Tester
Test any robots.txt against real URLs and user-agents — Allow or Block with the exact deciding line, longest-match rules, plus syntax warnings and a live fetch.
Loading tool controls…
Verify it yourself: press F12, open the Network tab, and use this tool — your files are never uploaded.
Robots.txt Tester at a glance
- Price
- Free
- Account
- Not required
- File uploads
- None — your files are never uploaded
- Category
- Developer Tools
Who uses Developer Tools?
Developers and engineers formatting JSON, testing regex, hashing data, encoding values or building API requests.
How to Use Robots.txt Tester
Follow these simple steps to get instant results in your browser.
Provide the robots.txt
Paste the file's text, or try the live fetch (best-effort — most sites block it, so pasting is the reliable route).
Pick a User-Agent and URLs
Choose Googlebot, GPTBot, ClaudeBot or another agent, then list the URLs to test, one per line.
Read Allow/Block and the Deciding Line
Each URL shows Allow or Block with the rule and line number that decided it, plus any syntax warnings.
What is Robots.txt Tester & How Does It Work?
Robots.txt Tester checks what a robots.txt file actually allows. Paste the file (or fetch a live one, best-effort), enter the URLs you care about and the user-agent — Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot and more — and the page shows Allow or Block for each URL together with the exact deciding rule and its line number. It also flags syntax problems: unsupported Noindex and Crawl-delay directives, unknown directives, rules before any User-agent line, and files over Google's 500 KiB limit.
Matching follows Google's longest-match precedence from RFC 9309: among the rules in the best-matching user-agent group that match a URL, the longest pattern wins, and on an exact length tie Allow wins. An exact agent group beats the wildcard group, and a URL with no matching rule is allowed by default. The tester implements all of that, including * wildcards and $ end-of-URL anchors.
Live fetch is labelled best-effort for a reason: most sites block cross-origin reads (CORS), so a failed fetch proves nothing about the site — paste the file's text instead. And robots.txt is a request, not a lock: polite crawlers obey it, bad actors ignore it, and blocking a page does not remove it from search results if other pages link to it.
Key Features & Capabilities
Deciding Line Shown
Every result names the exact Allow/Disallow rule and line number that decided it.
Longest-Match Precedence
Google's rule: longest matching pattern wins; on a tie, Allow wins.
11 User-Agents Built In
Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot and more, plus a custom agent field.
Syntax Warnings
Flags unsupported Noindex and Crawl-delay, unknown directives and the 500 KiB limit.
Live Fetch (Best-Effort)
Fetches a live robots.txt where CORS allows it, with an honest note when it cannot.
Pro Tips
- •Bookmark this tool for instant one-click access anytime.
- •Drag and drop files directly onto the input surface for fastest handling.
- •All processing happens in your browser session for maximum speed and data safety.
🎯 Common Use Cases
Robots.txt Tester - Longest-Match Precedence
Rules are grouped by User-agent. The group whose agent matches the crawler exactly is used; otherwise the '*' group. Within the group, only rules whose pattern matches the URL path are considered, and the longest pattern decides. A '*' in a pattern matches any sequence of characters and '$' anchors the end of the URL.
Worked Example
- 1User-agent: * / Disallow: /private/ / Allow: /private/public-page — testing /private/public-page
- 2Both rules match, but Allow: /private/public-page (20 chars) is longer than Disallow: /private/ (9 chars), so the page is ALLOWED
- 3Testing /private/secret: only Disallow matches, so it is BLOCKED
Sources & Further Reading
- RFC 9309: Robots Exclusion Protocol — IETF
- Robots.txt Specifications — Google
Frequently Asked Questions about Robots.txt Tester
Frequently asked questions
More Developer Tools
Complementary utilities for your workflow
Robots.txt Tester
Test robots.txt rules: Allow or Block + deciding line.