Skip to main content

Robots.txt Tester and Comparator

Before replacing robots.txt, check which addresses would change their crawl permissions. This tool interprets User-agent groups and Allow and Disallow rules, showing the decision and responsible line for each supplied URL. Test one version or enable comparison with a second file, including an intentionally empty one. Only local text and files are read. Permission to crawl does not prove indexability, and a crawl block does not guarantee removal from search results.

  • Clipboard
  • Batch processing
  • Export
Automate

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Local content analysis without fetching files. Decisions concern crawling, not indexing. Supply the robots.txt origin and a product token such as Googlebot. An empty file allows crawling.

Was this tool useful?

On this page

How does this tool work?

Before replacing robots.txt, check which addresses would change their crawl permissions. This tool interprets User-agent groups and Allow and Disallow rules, showing the decision and responsible line for each supplied URL. Test one version or enable comparison with a second file, including an intentionally empty one. Only local text and files are read. Permission to crawl does not prove indexability, and a crawl block does not guarantee removal from search results.

The RFC 9309 profile combines groups matching the exact product token, ignoring token case. The * group is the fallback when no specific group matches. Specific groups are not combined with the global fallback. Empty rules impose no restriction; unsupported directives are reported.

Paths are case-sensitive. UTF-8 characters and percent-encoded forms are compared consistently, * matches a sequence and a trailing $ anchors the end. The most specific matching rule wins, with Allow winning a tie. /robots.txt is implicitly accessible. Query strings participate in matching.

The Google profile selects the most specific applicable agent token, such as Googlebot for Googlebot-News when no dedicated group exists, and reports name normalisation. It also applies rules starting with *, such as *.pdf, which RFC 9309 ignores because they lack a leading /. Decisions apply to one origin: scheme, hostname and port. Crawl-delay, Host and noindex do not become crawl permissions. HTTP availability, firewall behaviour and crawler caches are not simulated.

How to use this tool

  1. Supply the contents

    Import UTF-8 text or paste groups and rules.

  2. Choose the crawler

    Enter its product token and the origin hosting the file.

  3. Test representative paths

    Include query strings, case variants and exceptions; enable B to compare.

Use cases

Check a launch

Test public and private paths before removing staging restrictions.

Review an edit

Find changed decisions even when a line-by-line file diff is hard to interpret.

Check a named crawler

See which User-agent group applies to a token such as Bingbot and which line decides for each URL.

Examples

A public exception under a private path

/private/report is blocked; /private/public is allowed by the more specific exception. A trailing $ does not cover extra query parameters.

Input

User-agent: *
Disallow: /private/
Allow: /private/public$

Result

/private/report: blocked; /private/public: allowed

Tips and best practices

  • Include CSS and JavaScript resources needed to render the page.
  • Use the indexability analyser for meta and HTTP indexing directives.
  • Group numbers refer to their starting lines so you can locate each declaration.

Sources and references

Frequently asked questions

Why is * not added to Googlebot rules?

An applicable specific group replaces the global fallback. Equally applicable specific groups are combined.

Is an empty file invalid?

No: it contains no restriction. The comparison checkbox distinguishes an intentionally empty B from a disabled comparison.

Can I paste the complete HTTP User-Agent?

Enter the product token, such as Googlebot-News. This field does not identify a crawler from a browser header.

Why is a URL outside the origin?

A file on https://example.com does not govern other subdomains or HTTP. Such URLs receive a diagnostic rather than an access decision.

Does this reproduce a real fetch?

No. It analyses at most 500 KiB and 10,000 text lines. File redirects, network errors and caches remain outside scope.

Related tools

Tools similar or complementary to this one.

Similar tools

Create a clear robots.txt file to guide web crawlers.

Web & SEOFeaturedUse this tool
TutorialBest practicesBeginner

Optimize images for the Web without losing quality

Resize, compress and choose between WebP, AVIF and other formats with a practical workflow that reduces file size without unnecessary visual loss.

30 August 20264 min