Tools / Robots & sitemap
Robots.txt & XML sitemap validator
Check whether crawlers can reach robots.txt and a sitemap, and review common directive and XML markers.
More free checks
Run a full security scan or speed test on your site, or try a related tool.
Related free tools
What it checks
- robots.txt response status, user-agent groups, sitemap declarations, and unfamiliar directives.
- Declared sitemap (or the conventional
/sitemap.xml) response status, XML root marker, and<loc>entry count.
This does not crawl every listed URL or determine whether a search engine will index a page. External-host sitemaps are identified but not fetched.
robots.txt controls crawling, not indexing
This distinction causes more accidental damage than any other part of technical SEO.
Disallow tells a crawler not to fetch a URL. It does not tell a search
engine not to list it. If other pages link to a disallowed URL, it can still appear in
results — as a bare link with no description, because the crawler was never allowed to
read the page and find out what it says.
The consequence is counter-intuitive and worth stating plainly: if you want a page out of
the index, you must let crawlers fetch it. Use
<meta name="robots" content="noindex"> or an
X-Robots-Tag: noindex header, and leave the URL crawlable so the directive is
actually seen. Blocking it in robots.txt instead guarantees the instruction is never read, and
the URL can sit in the index indefinitely with nothing you can do about it.
Things robots.txt is not
- Not an access control. The file is public, every crawler reads it, and polite
crawlers obey it while hostile ones treat it as a directory of interesting paths. Listing
/admin/or/backup/advertises them. Protect private paths with authentication; keep them out of robots.txt entirely. - Not retroactive. Disallowing a URL that is already indexed does not remove it, and often freezes it in place for the reason above.
- Not a per-page tool. It operates on path prefixes. Page-level decisions belong in meta tags or response headers.
Syntax mistakes that quietly cost you
- Blocking CSS or JavaScript. Google renders pages. If assets are disallowed it sees a broken layout and judges the page on that — including whether it is mobile friendly.
- A trailing slash that changes the meaning.
Disallow: /scanner/covers the directory but leaves/scannercrawlable. If both should be blocked, cover both. - Rules in the wrong group. Directives apply to the
User-agentblock they sit under, and a crawler obeys only the single most specific block that matches it — it does not merge your specific block with the*one. Rules placed after a blank line may land in a different group than you intended. - A relative
Sitemapline. It must be a fully qualified URL. - Blocking a URL you also want de-indexed. The contradiction above, which is worth repeating because it is so common.
Crawl-delayaimed at Google. Google ignores it; set the rate in Search Console instead. Bing and others do honour it.
What a sitemap does and does not do
A sitemap is a hint about which URLs exist and when they last changed. It helps discovery, particularly on a new site or one with weak internal linking. It does not force indexing, and submitting a URL does not oblige anyone to crawl it — a large sitemap on a new domain typically sees its URLs sit as discovered-but-not-crawled for weeks while the crawler works through them.
Keep it honest, because accuracy is what earns it trust:
- Only canonical, indexable URLs. No redirects, no 404s, nothing carrying
noindex, nothing blocked in robots.txt. <lastmod>only if it is true. A file whose dates all jump to today on every deploy teaches search engines to ignore the field.- 50,000 URLs and 50 MB uncompressed per file; split with a sitemap index beyond that.
- Reference it from robots.txt and submit it in Search Console and Bing Webmaster Tools.
<priority>and<changefreq>are ignored by Google. Harmless to keep, pointless to agonise over.
Reading your result
A 404 for robots.txt is not itself a problem — no file means everything is
crawlable, which is a perfectly valid position. A 5xx is a problem: crawlers may
treat a server error on robots.txt as "do not crawl anything" and back off the whole site.
For the sitemap, confirm the status, the XML root element and that the
<loc> count matches roughly what you expect; a count far below your page
total usually means a generation step is silently dropping sections.
Related checks: security.txt checker and redirect chain tracer, since redirect chains in a sitemap are a common cause of wasted crawl budget.
Frequently asked questions
How do I submit my sitemap to Google and Bing?
Add Sitemap: https://yourdomain/sitemap.xml to robots.txt so every crawler finds it, then submit it in Google Search Console and Bing Webmaster Tools to see processing errors.
How large can a sitemap be?
Up to 50,000 URLs or 50 MB uncompressed per file. Larger sites use a sitemap index file that lists several sitemaps.
Should I block AI crawlers in robots.txt?
It is your choice. Disallowing GPTBot, ClaudeBot or CCBot asks those crawlers not to collect your pages for training, but it can also keep your content out of AI answers that cite sources. The bulk URL status checker shows how your server responds to each bot.
When two robots.txt rules conflict, which one wins?
Google and Bing apply the most specific rule — the one with the longest matching path. When an Allow and a Disallow match with equal length, Allow wins.