Your sitemap is the list of pages you hand to Google and ask it to crawl. Most sites treat it as a file-and-forget artifact: the CMS generates it, it sits at /sitemap.xml, and nobody looks at it again. Then the site changes — pages are deleted, sections are redirected, templates add noindex tags — and the sitemap quietly fills with dead ends. Google notices. A file full of 404s, redirects and blocked URLs teaches Google that your sitemap is unreliable, and an unreliable sitemap gets crawled less often — which is when your new pages stop being discovered. An XML sitemap audit keeps the file honest.
What a sitemap audit checks: the file, the report, the URLs
Three layers, in order. First, the file itself: does it return a 200 status, is it valid XML, does it follow the sitemaps.org protocol, and is it within the size limits? A file Google cannot parse is worth nothing. Second, the Search Console Sitemaps report: what does Google say about the file — Success, Has errors, or Couldn't fetch — and which specific errors does the details page list? Third, the URLs inside: is every listed URL a canonical, indexable, 200-status page you want in search results, and is every important page actually listed? The third layer is where most audits find the real damage: a sitemap that lists the wrong pages spends Google's crawl on URLs that cannot rank.
The limits that decide your file structure
Before auditing the contents, know the container. The sitemaps.org protocol caps one sitemap file at 50,000 URLs and 50 MB uncompressed — both limits at once, and a gzipped file still counts by its uncompressed size. A file past either limit is typically rejected outright. Past the limit, split the URLs across several sitemaps and list them in a sitemap index file, which can reference up to 50,000 child sitemaps, all on the same host as the index. Two more facts matter. Google ignores the priority and changefreq tags entirely, so a file full of priority 1.0 entries is decoration. And Google trusts lastmod only when it is consistently and verifiably accurate — a file whose every URL claims today's date teaches Google to ignore the tag.
Step 1: fetch the file and validate it yourself
Start outside Search Console, because its report lags behind reality by days. Open the sitemap URL in a browser: you should see XML, not a styled page, a login form, or your theme's 404 page. Then check the status code with curl -I https://yoursite.com/sitemap.xml — you want a plain 200, because Google does not follow redirects for a submitted sitemap URL, so a 301 here is already an error even though a browser follows it happily. Next, validate the XML. The single most common cause of an invalid sitemap is an unescaped ampersand in a query-string URL: & is required in XML, and a bare & breaks the whole document, not just that one entry. Check the encoding is UTF-8, the root element is urlset with the sitemaps.org 0.9 namespace, and every loc is an absolute URL on the same host as the sitemap.
Step 2: read the Search Console Sitemaps report properly
With the file confirmed reachable and valid, open the Sitemaps report in Search Console. It shows one of three statuses for each submitted sitemap. Success means Google fetched the file without errors and its URLs are queued for crawling. Has errors means Google read the file but found problems in some entries — the URLs it could parse are still used. Couldn't fetch means Google could not download the file at all. Click the sitemap row for the details page, which lists the exact errors. Three things about this report catch people out. First, it lists only sitemaps submitted through the report itself or the Search Console API, up to 1,000 submissions — a sitemap Google found through robots.txt does not appear, so its absence here proves nothing. Second, Google gives no "pending" status: a Couldn't fetch on a file submitted today can simply mean Google has not tried yet — check the "Last read" date before changing anything. Third, after a failed fetch Google retries for a few days and then stops trying until you resubmit, so fixing the file is not enough on its own: submit the same URL again after the fix. Common errors: "Sitemap is HTML" means the server returned a web page instead of XML; "URL not allowed" means an entry points at a different host; "Empty sitemap" means the file has no URLs.
Step 3: crawl every URL in the sitemap
The report tells you whether Google can read the file. It does not tell you whether the URLs inside it are any good. For that, crawl the sitemap's own list. Screaming Frog's free version does this in list mode: paste the sitemap's URLs and it returns the status code, canonical, indexability and title for each one. The free tier covers up to 500 URLs per crawl, enough for most small sites; a licence, about $279 per user per year, removes the cap and adds JavaScript rendering, saved crawls and the Search Console integration. The free tier cannot render JavaScript, so on a JavaScript-heavy site it checks server-rendered HTML only. Sort the results by status code. Every 404, 410 and 5xx is a URL Google is being asked to crawl that does not exist. Every 301 and 302 has moved: replace it with the destination, because a sitemap should list final URLs, not redirects. Every URL that returns 200 but carries a noindex tag, a robots.txt block, or a canonical pointing elsewhere cannot rank — remove it. What remains should be canonical, indexable, 200-status pages.
Step 4: compare the sitemap against the crawl and the index
A sitemap can be wrong in the other direction too: pages that exist but are never listed. Run a full crawl of the site from the homepage and compare the two lists. Pages the crawler finds that the sitemap misses are usually orphan pages — live, linked, but never submitted — and they are discovered late or not at all. Our internal linking audit covers the orphan-page side of the same problem. Then compare both lists against what Google has actually indexed, using the Pages report in Search Console. Four mismatches matter. Indexed but not in the sitemap: add the important ones so discovery does not depend on luck. In the sitemap but not indexed: the file is asking and Google is declining — check whether the page is thin, duplicated or competing with a stronger page. In the sitemap but excluded by robots.txt or noindex: remove the URL or remove the block. Crawled but neither listed nor indexed: the sitemap is not the fix here, the page is.
The common errors, in priority order
Fix in this order, because the early items unblock everything after them. First, the file itself: a sitemap that returns anything other than 200, is not valid XML, or exceeds the size limits — nothing else matters until this is fixed. Second, the fetch blockers: a robots.txt rule that disallows the sitemap path, a firewall or bot-protection service that returns a 403 or a challenge page to Googlebot, or an unresolved manual action, which stops Google reading sitemaps entirely. Third, the dead URLs: 404s and 410s inside the file, which waste crawl and erode trust in the file. Fourth, the redirects: replace every listed URL that redirects with its destination. Fifth, the non-indexable URLs: noindex pages, robots-blocked pages and non-canonical URLs. Sixth, the wrong-format entries: relative URLs, URLs on a different host, unescaped characters, and a lastmod that lies. Seventh, the missing pages the crawl found that the sitemap never lists. Items one and two are emergencies; items three to six are hygiene; item seven is opportunity.
Worked example: the sitemap that listed the old site
A small e-commerce site redesigns in January: new URLs, new category structure, old product pages redirected. Nobody touches the sitemap, because the CMS generates it automatically — or so the team believes. In March the audit starts with a fetch: the file returns 200 and valid XML, so step one passes. Search Console says Has errors, listing 214 "URL not followed" errors — redirects — and 96 "URL not found" errors. The crawl of the sitemap's 1,100 URLs finds 310 redirects and 96 404s: the old URLs, still listed because the plugin cached the sitemap at the redesign and never regenerated it. The full site crawl finds 140 new pages the sitemap never lists. The fix is three edits: regenerate the sitemap from the live URL list, replace every redirect with its destination, and delete the 404s. The report flips to Success within a week, and the new category pages — undiscovered for two months — start appearing in the Pages report. The redesign was not the problem; the stale file was.
Keeping the sitemap honest after the audit
A sitemap rots at the speed the site changes, so the audit needs a maintenance habit, not a one-off fix. Re-check the file after every change that touches URLs: a redesign, a migration, a CMS or plugin update, a new section, or a bulk publish. On a site that publishes regularly, a quick monthly check — fetch the file, glance at the Sitemaps report, scan for new errors — is enough, with a full audit including the crawl comparison quarterly. Three rules keep the file honest between audits. One: the sitemap is generated from the live site, never from a cached list — a cached sitemap is how the worked example above happened. Two: only canonical, indexable, 200-status pages go in, decided by the same rules every time. Three: lastmod is the real last-modified date of the page, not the date the file was generated. If your CMS cannot generate a clean sitemap, generate one from a crawl instead: Screaming Frog's free version generates XML sitemaps from a crawl of up to 500 URLs. A sitemap is a discovery hint, not an indexing guarantee and not a ranking factor — it makes sure Google knows your pages exist; the ranking is the pages' job, covered elsewhere in this blog, from schema markup to content to cannibalization.
Run the audit on your own site
Start with the fetch: open your sitemap, check it returns 200 with valid XML, and confirm it is within the 50,000 URL and 50 MB limits. Then read the Sitemaps report in Search Console and fix whatever status it shows, resubmitting after each fix. Then crawl the sitemap's own URLs and delete or replace everything that is not a canonical, indexable, 200-status page. Finally, compare the sitemap against a full crawl and add the important pages it misses. Expect the report to flip to Success within days of a clean file; newly listed pages take longer — discovery is fast, indexing is Google's decision, and it follows the page's quality, not the sitemap's say-so. Try the free SEO audit tool to check your own site's pages in one pass.
Frequently asked questions
What is an XML sitemap audit?
It is a check of the sitemap file itself and everything inside it: that the file returns a 200 status with valid XML, that Search Console can fetch and read it, and that every URL listed is a canonical, indexable, 200-status page you actually want in search results. The audit also compares the sitemap against a crawl of the site and the indexed pages, so missing pages and URLs that should never have been listed both show up.
How do I know if Google can read my sitemap?
Open the Sitemaps report in Google Search Console. It shows one of three statuses for each submitted sitemap: Success means Google fetched and processed it without errors; Has errors means it read the file but found problems in some entries; Couldn't fetch means Google could not download the file at all. Click the sitemap row for the details page, which lists the exact errors. The report only lists sitemaps you submitted through the report or the Search Console API — a sitemap Google found through robots.txt does not appear.
What are the limits of one XML sitemap?
One sitemap file can hold at most 50,000 URLs and must be no larger than 50 MB uncompressed — the limits come from the sitemaps.org protocol that Google, Bing and the other engines follow. A gzipped file still counts by its uncompressed size. Past either limit, split the URLs across several sitemaps and list them in a sitemap index file, which can reference up to 50,000 child sitemaps. All child sitemaps must live on the same host as the index.
Should a sitemap contain every page on my site?
No — it should contain only the canonical, indexable pages you want in search results. Leave out noindex pages, pages blocked by robots.txt, redirect targets, 404s, parameter and faceted variants, and pages that canonicalize to another URL. Every wrong URL in the file is a small signal to Google that the sitemap is unreliable, and a file full of them gets crawled less often. A sitemap is a discovery hint, not an indexing guarantee: listing a page never forces Google to index it.
Why does Search Console say "Couldn't fetch" for my sitemap?
Google could not download the file. The usual causes are a wrong submitted URL (a 404), a redirect on the sitemap URL — Google does not follow redirects for submitted sitemaps, so submit the final address — a robots.txt rule that blocks the file, a firewall or bot-protection service returning a 403 or a challenge page to Googlebot, a server error or timeout, or an unresolved manual action. After a failed fetch Google retries for a few days and then stops, so fix the cause and resubmit the same URL. A brand-new submission can show Couldn't fetch for a day or two before Google has tried, so check the "Last read" date before changing anything.
How often should I audit my sitemap?
Re-check it after every change that touches URLs: a redesign, a migration, a CMS or plugin update, a new section, or a bulk publish. On a site that publishes regularly, a quick monthly check — fetch the file, glance at the Sitemaps report, and scan for new errors — is enough, with a full audit (crawl comparison included) quarterly. Automate the monthly check if you can: a sitemap that silently breaks after a deploy can sit unread for weeks.
Run this on your own site — free
The checks above take an afternoon by hand. Our free audit tool runs the technical, speed and on-page checks for you in about a minute.
Run the free SEO audit