hackerdb

Home / Free tools / robots.txt diff

robots.txt diff: compare two files and see crawler impact

Paste the file that is live now and the file you plan to publish. The tool diffs user-agent groups, Allow / Disallow paths, sitemaps and crawl-delay, and flags well-known search and AI crawlers that appear in only one side.

How to use it

  1. Paste the live file. Copy it from https://your-domain/robots.txt, not from memory.
  2. Paste the version you want to publish. Keep comments if you like; they are ignored in the comparison.
  3. Read group-level changes first. A new User-agent line is easy to miss in a unified text diff, and it is what crawlers actually match.
  4. Confirm AI crawlers by their current names. Training, search and “user” fetchers are often separate tokens.

Why a structured diff beats a text diff

robots.txt is matched by user-agent, then by the longest Allow or Disallow path. A line-by-line diff will tell you that a file changed; it will not tell you that GPTBot used to be blocked entirely and now has an Allow for /blog, or that a Sitemap was added. Grouping rules by agent is the view that matches how crawlers read the file.

Be careful with training versus search

This site also has a robots.txt generator and a crawler-coverage checker if you are writing a file from scratch. The AI Search Readiness Kit is the paid checklist that covers robots, llms.txt, sitemaps and on-page questions together.

Worked example

This is what the tool produces for the sample input, so you can see the result without running it.

Input

User-agent: *
Disallow: /admin
Disallow: /api/
Allow: /api/public

User-agent: GPTBot
Disallow: /

Sitemap: https://example.com/sitemap.xml

Result

Current: 2 groups, 1 sitemap. Proposed: 4 groups, 2 sitemaps.

User-agentStatusCurrent rulesProposed rules
*Changeddisallow /admin; disallow /api/; allow /api/publicdisallow /admin; disallow /api/; allow /api/public; disallow /drafts (Added: disallow /drafts)
ClaudeBotOnly in proposed—disallow /
GPTBotChangeddisallow /allow /blog; disallow / (Added: allow /blog)
OAI-SearchBotOnly in proposed—allow /
SitemapsValue
Unchangedhttps://example.com/sitemap.xml
Added in proposedhttps://example.com/sitemap-news.xml
Removed from current—

Known search and AI crawlers

robots.txt is a request, not a lock. Some crawlers honour it, some do not, and a Disallow for training does not hide a URL that is already public. Check the result against each vendor’s current product names — they change. This page does not fetch your site.

Frequently asked questions

Does this fetch my live robots.txt?

No. Paste both sides. That way you can compare a draft that is not public yet.

What if a user-agent appears twice?

The tool merges the path rules from every group that names that agent.

Will a Disallow keep my pages out of AI training?

Only for crawlers that honour the token you named, and only for future fetches. It is not a legal or technical guarantee.

Is the file uploaded?

No. The comparison stays in your browser.

More free tools

All free tools