Skip to content

Robots.txt Tester

Developer Tools•Client-Side & Private

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.

Tool workspace
Paste-first tool. Live fetch is best-effort: most sites block cross-origin reads (CORS), so a failed fetch proves nothing about the site — paste the robots.txt text instead. Matching follows Google's longest-match rule (RFC 9309): the longest matching Allow/Disallow pattern wins; on a tie, Allow wins.

Fetch a live robots.txt (best-effort)

3 user-agent group(s) · 172 bytes (Google reads at most 500 KiB).

Results for “Googlebot” (5 allowed · 1 blocked)

URLResultDeciding line
/admin/dashboardALLOWNo matching rule — allowed by default
/private/secretALLOWNo matching rule — allowed by default
/private/public-pageALLOWNo matching rule — allowed by default
/searchBLOCKDisallow: /search (line 10)
/search/helpALLOWAllow: /search/help (line 11)
/aboutALLOWNo matching rule — allowed by default

robots.txt is a request, not a lock — polite crawlers obey it, bad actors ignore it. Blocking a page in robots.txt does not remove it from search results if other pages link to it.

Loading tool controls…

Files processed locally — never uploaded to our servers
Free Instant Private

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

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.

1

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

2

Pick a User-Agent and URLs

Choose Googlebot, GPTBot, ClaudeBot or another agent, then list the URLs to test, one per line.

3

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

Checking an AI-Crawler BlockVerify that GPTBot or ClaudeBot is really blocked from a path — and that Googlebot still is not.
Debugging a Missing PageFind out whether a robots.txt rule is accidentally blocking a page Google should crawl.
Auditing a New robots.txtTest a draft file against your important URLs before deploying it.
Catching a Group-Mismatch SurpriseWith the sample file, Googlebot is ALLOWED on /admin/dashboard even though “*” is blocked — its own group has no /admin/ rule. Test each agent you care about, not just “*”.
📐

Robots.txt Tester - Longest-Match Precedence

Formula Equation:
Winner = the matching rule with the longest pattern in the best-matching group (exact agent beats '*'); on an equal-length tie, Allow wins; no matching rule → allowed

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

  1. 1User-agent: * / Disallow: /private/ / Allow: /private/public-page — testing /private/public-page
  2. 2Both rules match, but Allow: /private/public-page (20 chars) is longer than Disallow: /private/ (9 chars), so the page is ALLOWED
  3. 3Testing /private/secret: only Disallow matches, so it is BLOCKED
📚

Sources & Further Reading

Frequently Asked Questions about Robots.txt Tester

Frequently asked questions

Google’s longest-match rule (RFC 9309): among the rules in the best-matching user-agent group that match the URL, the longest pattern wins; on an exact length tie, Allow wins. The page shows the deciding rule and its line number for every URL.

Browsers block cross-origin reads (CORS), so most sites’ robots.txt cannot be fetched from a web page. That failure proves nothing about the site — paste the file’s text instead. The page labels live fetch as best-effort.

No — neither is part of the robots.txt standard (RFC 9309). Google ignores both: use a noindex meta tag or X-Robots-Tag header instead of Noindex, and note that Bing honours Crawl-delay while Google does not. The tester flags both as warnings.

Google reads at most the first 500 KiB of a robots.txt file and ignores the rest. The tester shows the file size in bytes and warns if it is over the limit.

Not necessarily. Robots.txt only asks crawlers not to fetch the page — if other pages link to it, Google may still list the URL without a description. To remove a page, use noindex or remove it.

/search is BLOCKED by Disallow: /search (line 10), but /search/help is ALLOWED by Allow: /search/help (line 11 — 12 characters beats 7). And /private/public-page is ALLOWED with no matching rule at all, because Googlebot’s own group has no rule for it.

The best-matching group wins: when you test Googlebot, only Googlebot’s own group is used, and it has no /private/ rule, so the page is allowed by default. For the “*” agent, the Allow rule (20 characters) beats Disallow: /private/ (9 characters).

Complementary utilities for your workflow

View all →
You are here

Robots.txt Tester

Test robots.txt rules: Allow or Block + deciding line.

Current tool

LLM Token Counter

Count tokens for GPT and Claude models, with cost estimates.

Try tool

JSONL Viewer

Line-by-line JSONL viewer with errors and field profile.

Try tool