Skip to main content

Robots.txt Tester & Builder

Test URLs against robots.txt, trace the deciding rule and build a valid file

robots.txt

Edit & Test and Build run in your browser. Nothing is sent to CodingTool servers.

One per line, up to 50.

0 lines · 0 Bytes

Results

Paste or load a robots.txt file
Results update as you type. Load an example to see a rule trace.

Diagnostics

Diagnostics, sitemaps and groups appear once a file is loaded.

What this tool does

Robots.txt Tester & Builder checks whether a crawler may fetch a URL under a robots.txt file. For every tested path it shows Allowed or Blocked by robots.txt, the applicable User-agent group, the matched rule with its line number and a full rule trace, so you can see why one rule beat another.

Three modes

Edit & Test and Build run entirely in your browser. Test Live sends the URL you enter to CodingTool servers, which request /robots.txt from the target site with an emulated user agent; the target site receives that request, private and internal addresses are blocked, and nothing is stored. The fetched file opens read-only, and you can edit a copy to try changes.

How matching works

Matching follows RFC 9309. A crawler uses the groups that name its product token, otherwise the User-agent: * groups. Within them the longest matching Allow or Disallow pattern wins, and Allow wins a tie. * matches any characters and a trailing $ anchors the end of the URL. A 4xx robots.txt response means no restrictions; a 5xx response or network failure means the whole site is disallowed.

Limits

robots.txt controls crawling, not indexing. A URL that is Blocked by robots.txt can still be indexed without its content if other pages link to it, and a noindex rule on a blocked page is never seen; treat such cases as a potential indexability issue. Provider behavior varies: Google ignores crawl-delay and processes only the first 500 KiB, and user-triggered agents may not follow robots.txt. Unusual but valid rules are reported, never rewritten.

Frequently asked questions
Does the tester send my robots.txt to a server?
No for Edit & Test and Build: both run entirely in your browser. Test Live sends only the URL you enter to CodingTool servers, which request /robots.txt from the target site with an emulated user agent. Private and internal addresses are blocked, and nothing is stored.
Why is a URL allowed even though a Disallow rule matches it?
Under RFC 9309 the longest matching rule wins, and when an Allow and a Disallow rule are equally long, Allow wins. The rule trace lists every rule in the applicable group with whether it matched and its length, and marks the winner.
Does Blocked by robots.txt mean the page will not appear in search results?
No. robots.txt controls crawling, not indexing. A blocked URL can still be indexed without its content if other pages link to it, and a noindex rule on a blocked page cannot be read. Treat that as a potential indexability issue and use noindex on a crawlable page instead.

CodingTool is officially live on