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
- Paste the live file. Copy it from https://your-domain/robots.txt, not from memory.
- Paste the version you want to publish. Keep comments if you like; they are ignored in the comparison.
- 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.
- 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
- OpenAI, Anthropic and others publish separate tokens for training, search and user-initiated fetches. Blocking one does not block the others.
- A
User-agent: *Disallow applies only to agents that do not have their own group. - Allow / Disallow order in the file is less important than path length; a short Allow will not override a longer Disallow.
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-agent | Status | Current rules | Proposed rules |
|---|---|---|---|
| * | Changed | disallow /admin; disallow /api/; allow /api/public | disallow /admin; disallow /api/; allow /api/public; disallow /drafts (Added: disallow /drafts) |
| ClaudeBot | Only in proposed | — | disallow / |
| GPTBot | Changed | disallow / | allow /blog; disallow / (Added: allow /blog) |
| OAI-SearchBot | Only in proposed | — | allow / |
| Sitemaps | Value |
|---|---|
| Unchanged | https://example.com/sitemap.xml |
| Added in proposed | https://example.com/sitemap-news.xml |
| Removed from current | — |
Known search and AI crawlers
- Added in the proposed file: OAI-SearchBot (OpenAI, search)
- Added in the proposed file: ClaudeBot (Anthropic, training)
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
- robots.txt generator for AI crawlers: Generate a robots.txt that allows AI search bots, blocks AI training bots, or blocks all AI crawlers, with private paths repeated in every named group.
- robots.txt AI crawler checker: Paste a robots.txt and a URL path. See which of 20 AI and search crawlers may fetch it, which rule decided, and where a named group overrides the * group.
- llms.txt validator: Paste your llms.txt and check it against the proposed format: one H1, a blockquote summary, H2 link sections, absolute URLs, duplicates and size.