An XML sitemap index branching into URL files, with a magnifying glass highlighting a broken sitemap connection for audit and repair.

XML Sitemap Audit (2026): Fix Sitemap Index & Search Console Errors

Quick Answer

How Do You Audit an XML Sitemap?

Start with your real public sitemap.xml or sitemap index and check whether its XML is reachable and valid. Follow every child sitemap, respect Google’s per-file limits, then sample listed URLs to confirm their canonical, HTTP status and intended indexability. In Search Console, separate file-fetch or parsing errors from the Page indexing report: Discovered pages are not necessarily indexed. Correct the site’s sitemap generator or routing rule, retest live, and monitor later Google processing without expecting guaranteed indexing.

Table Of Content

An XML sitemap tells search engines about URLs you want them to discover. It is not a command to crawl every URL, a shortcut to ranking, or a complete list of every URL your website could expose. A website can have a perfectly parseable sitemap that lists outdated redirects and noindexed pages. It can also have an accurate sitemap yet still see only some listed pages indexed by Google.

This practical audit is designed for website owners, agency editors and developers working with Framer, WordPress, Webflow, Shopify or a custom CMS. It focuses on sitemap file health and Search Console troubleshooting rather than repeating a full technical SEO audit or an enterprise crawl-budget guide.

The example paths in this article are fictional teaching examples. No real 8Spark sitemap, private Search Console Sitemaps report, full site crawl or server log was tested for the claims in this article. Google and vendor documentation are linked where technical rules matter.

What to Check: Sitemap Files vs Pages vs Google Reports

Evidence layer

Question it answers

What it does not prove

Public sitemap.xml / sitemap index

Does the real file load and contain plausible URL or child-sitemap references?

Every listed page is indexed

Child sitemap and XML parser

Are the child files and syntax usable within the file limits?

Every URL listed is a preferred public canonical

Live target URL test

Does each sampled URL return the expected status, canonical and content?

Google’s last historical crawl had the same outcome

Search Console Sitemaps report

What happened on Google’s last recorded submitted sitemap fetch; how many URLs were parsed?

Discovered pages are necessarily indexed or currently reachable

Search Console Page indexing / URL Inspection

Google’s recorded indexing status for important URLs and representative examples

Every current URL and every crawl request is shown

Configured website crawl / CMS export

Which intended URLs exist, link internally and match sitemap entries within scope?

All real Google-selected canonicals without further evidence

Google’s official source explains the Sitemaps report and its exact statuses. These reports have different denominators and refresh schedules.

A Nine-Step XML Sitemap Audit Checklist

Step 1: Locate the actual production sitemap and record the host

On the production domain, look for the sitemap location supplied by your CMS, its robots.txt Sitemap declaration or the verified Search Console Sitemaps report. Common paths include /sitemap.xml and /sitemap_index.xml, but neither filename is required on every platform. Check the exact HTTPS host, www variant and any country-specific domain or subdomain.

For a published Framer site, Framer’s documentation says it generates a sitemap automatically, typically at /sitemap.xml. That does not mean a draft article has already appeared in the live sitemap, nor does it guarantee every intended CMS page is indexable. Check a production route only after it is actually published.

Platform source: Framer Help — How to Access Your Sitemap.

Record: verified owner, production URL, host/protocol, CMS generator, first checked date, expected public page families and any known release or migration window. Avoid using a preview, dev host or an unrelated property’s sitemap as the production source.

Step 2: Verify the HTTP response and actual XML document

Open the exact sitemap URL from a logged-out browser session and, when possible, inspect the Network response. You want an accessible successful response containing the expected XML, not an HTML login screen, cookie gate, 404 page, WAF challenge or generic application shell returned with HTTP 200. If a file is gzip-compressed, test that it can be decompressed and parsed.

Check that a sitemap has an appropriate XML document structure: a normal URL sitemap uses urlset with url and loc elements; a sitemap index uses sitemapindex with child sitemap and loc elements. Verify valid UTF-8 and escaped characters. A browser displaying an XML tree or plain text is normal; visual styling is not proof of validity.

Compare browser GET with the actual Google Search Console report’s last fetch if you have permission. A success now does not erase an earlier 403/5xx at Google’s previous fetch. Conversely, a temporary request failure does not prove that all historical URLs were never indexed.

Step 3: Audit every child file in a sitemap index

If the top-level document is a sitemap index, follow the child loc entries and test their exact public HTTP responses and XML structure independently. An index might return 200 while one child is missing, blocked, empty, malformed or returning HTML. Record child file names, page family and lastmod values separately from the page URLs inside each child.

Google permits up to 50,000 loc references in one sitemap index; references normally need to be on the same site and within the index file’s path scope, with documented exceptions for configured cross-site submission. If your site uses a deliberate cross-site sitemap arrangement, check Google’s verified-ownership and submission rules rather than treating every different host as automatically invalid.

Google source: Managing Sitemaps With Sitemap Index Files.

Step 4: Check file size, encoding and sitemap URL limits

A single sitemap file must stay within both of Google’s limits: 50,000 URLs and 50 MB of uncompressed content. A compressed file’s tiny .gz download size does not replace the uncompressed 50 MB limit. If either limit is exceeded, split the inventory into valid sitemaps and connect them with one or more sitemap indexes.

For large CMSs, splitting by useful URL families—products, categories, articles or locales—can simplify monitoring. But a child sitemap shouldn’t contain 50,000 placeholder URLs just to reach a round target. The file limit is a protocol restriction, not advice that every URL belongs in Google Search.

Check absolute URL format and the intended canonical hostname and path. In general, Google uses the listed full URL exactly as supplied; mixing https/www variants, alternate query URLs, incorrect location scope or unsupported cross-host configurations can create errors.

Source: Google — Build and Submit a Sitemap.

Step 5: Sample actual URLs and check indexability and canonical intent

For each important sitemap family, choose representative recent, older, high-value and edge-case pages. Check the actual response and final destination. As a general SEO practice, the sitemap should list current canonical, indexable, accessible URLs that you genuinely want search engines to consider.

Listed URL condition

Likely meaning

What to do

Public URL returns intended 200 and is self-canonical

Usual desired sitemap entry for relevant public content

Keep, then check real content and link discovery

Listed URL permanently redirects to a different URL

Sitemap points to outdated source location

Update the sitemap generator to list appropriate final canonical URL

Listed URL returns 404 or 410

Removed or incorrectly included page

Remove stale entry; restore current useful page only if it should exist

Listed URL returns 5xx or 429

Server/availability or capacity problem

Confirm frequency and root cause before editing sitemap entries

Listed URL has intentional noindex

Sitemap suggests discovery while page requests exclusion

Usually exclude from preferred indexable sitemap; confirm intent

Listed URL canonicalizes to another public page

Duplicate/alternate listed as preferred

Check actual canonical mapping and use preferred URL if correct

Listed URL blocked by robots.txt

Crawler access differs from search intent

Investigate whether block and sitemap entry are consistent

Valid public URL missing from sitemap

CMS generator, publish workflow or page-family coverage gap

Confirm whether page belongs in sitemap; repair generator if needed

A valid 404 on an obsolete page is not automatically a site-health crisis; the issue is continuing to recommend the removed URL as a preferred current page in your sitemap. Likewise, a noncanonical URL might be expected to exist for visitors but not belong in the preferred sitemap.

Tool source: Screaming Frog’s XML Sitemap Audit Guide describes comparing sitemap URLs with crawled indexability and internal links.

Step 6: Validate lastmod and remove misleading freshness hints

The optional lastmod value should reflect a meaningful change to the actual page—not a daily automation timestamp, footer year, sitemap regeneration time or arbitrary fresh date. Google says it may use lastmod when it can verify the value is consistently accurate by comparing it with the page. Content changes, relevant structured-data changes or significant page links can qualify; meaningless date bumps undermine the signal.

Google ignores sitemap priority and changefreq elements, so spending time setting every page to priority 1.0 cannot force crawling or rankings. For a sitemap index, the lastmod for a child sitemap indicates that sitemap file’s modification, not a claim that every child URL changed at the same time.

Google’s old unauthenticated sitemap ping endpoint was deprecated. Use Search Console, valid robots.txt sitemap discovery and automated accurate updates, rather than repeating obsolete ping requests or editing every lastmod to today.

Official sources: Google sitemap best practices and Sitemaps ping endpoint deprecation.

Step 7: Read Search Console’s Sitemaps report without confusing its statuses

In a verified Search Console property, open Indexing > Sitemaps and click the exact submitted sitemap. The report normally categorizes the latest request as Success, Couldn’t fetch or a sitemap with errors. These categories mean different things: a fetch failure is about obtaining the file, while a parsing/content error may occur after the file was obtained.

The report lists sitemaps submitted through this report or the Search Console API. It does not list every sitemap Google might discover from robots.txt or another path, and the chosen URL-prefix/Domain property’s boundaries can change which reports you see. A successfully processed sitemap can still list URLs Google chooses not to index.

Search Console’s Discovered pages count refers to URLs parsed from a submitted sitemap; for a sitemap index it includes URLs from child files and handles duplicates in its reporting. It is not your website’s verified Indexed page count. Open Page indexing and the applicable submitted-sitemap filter, then inspect representative important pages and the report’s update dates before forming a conclusion.

The exact source is Search Console Help — Sitemaps Report.

Step 8: Diagnose Couldn’t fetch, invalid XML and partial child errors

Search Console / validation finding

Likely causes to verify

First useful test

Couldn’t fetch

Wrong sitemap address, robots block, server/WAF/auth failures, temporary host issue, unresolved manual action or crawl-demand limits

Inspect exact submitted URL and last request; live URL test and server evidence if authorized

Sitemap had errors

Google fetched but could only partially parse contents

Open error details; inspect malformed entry, unsupported value or scope

Sitemap could not be read

Actual fetch/parse failure at recorded time

Confirm XML, MIME/body, HTTP response and hosting/access path

Missing / invalid child sitemap

Top-level index valid, one referenced child 404/5xx/HTML/malformed

Fetch each child independently and fix its generator/reference

URL not allowed

Listed URL outside permitted directory/site, or cross-site ownership not configured

Compare sitemap location, protocol/hostname and submission configuration

URL not followed

Redirect loops/too many hops, relative URL or target fetch issue

Test exact listed URL and final response; list the preferred absolute URL

Empty sitemap / compression error

No usable loc URLs, invalid gzip, XML syntax or output corruption

Decompress, parse, validate count and inspect generator output

Size or URL count error

Above 50 MB uncompressed, >50,000 URL entries, or oversized index

Split valid files; verify actual counts and uncompressed bytes

Do not diagnose a browser-accessible sitemap as permanently broken solely because Search Console displays an old fetch error. Conversely, repeatedly clicking Submit does not resolve a real 403, invalid XML or child-file problem. Compare last-fetch time with server, firewall and CMS publish logs where authorized. Fix the underlying issue and resubmit if the official troubleshooting guidance calls for it.

Google lists these messages, causes and steps in its official Sitemaps troubleshooting help.

Step 9: Reconcile CMS, internal links and the live sitemap after a change

After a CMS update or URL migration, compare three inventories: intended published canonical URLs from the CMS, URLs listed in the current sitemap(s), and important URLs discoverable through a documented link crawl. A sitemap-only URL may be difficult for visitors to find; a linked page missing from a sitemap may be intentionally excluded or accidentally omitted. Distinguish expected gaps from genuine publishing bugs.

Fix the generator or shared template rather than manually editing one generated XML file that the next release overwrites. Test an important new article, an older article, a renamed/redirected page, a retired page and a key service/product page. Record whether the exact live sitemap changed and its new file date, then check Google Search Console later.

At handoff, maintain a reproducible issue register: sitemap URL, child file, affected target URL or family, actual HTTP/XML evidence, expected behavior, source date, root cause, responsible owner, acceptance test and later Google report status. Only mark an issue ‘Verified’ when the live technical test passes; do not mark it as ‘Indexed’ merely because the sitemap is now clean.

Sitemap Index Errors: A Small Fictional Example

Imagine a business CMS has a top-level /sitemap.xml index referencing /sitemaps/pages.xml, /sitemaps/articles.xml and /sitemaps/products.xml. The index and pages.xml return valid XML. articles.xml returns an HTML error body with HTTP 200 after a release, and products.xml contains old product redirects.

This is a fictional training scenario, not an observed 8Spark or client incident. The fix is not to resubmit the unchanged index repeatedly. First correct the articles.xml response/generator and update products.xml to the intended current canonical product routes; then test the actual index and child files, confirm relevant page responses and monitor the Search Console report.

If a page is in a child sitemap but missing from internal navigation, use a separate internal-link audit to check whether it is truly orphaned. A separate page-indexing audit is needed to understand why Google may not select it for Search. Sitemap validity is only one part of discovery.

Framer, WordPress and Ecommerce Sitemap Checks

Platform/context

Likely sitemap source

Specific audit caution

Framer published website

Platform-generated sitemap.xml and published CMS routes

Draft-only CMS items aren’t public articles; inspect the real production host, status and noindex settings

WordPress with an SEO plugin

Plugin sitemap index and page/post/taxonomy child files

Plugin conflicts, caching, security middleware or disabled content types can change child files

Webflow CMS

Platform-generated public sitemap and published collection pages

Check publish status, canonical domain and current collection slug rules

Shopify store

Platform-generated sitemap index with product, collection and other child files

Check retired products, canonical URLs and variant/locale routing without assuming all variants must be indexed

Custom or headless CMS

Server/build generator, API feeds or CDN-served XML

Check deployment cache, lastmod source fields, gzip validity, allowed hosts and template route mapping

Do not assume the same sitemap setup screen exists across platforms. Test the emitted public XML and current platform help first. A platform stating that it auto-generates a sitemap does not prove every site using it has no sitemap errors.

Framer’s official documentation: How to Access Your Sitemap.

Why Sitemap Discovered URLs and Google Indexed URLs Differ

In a real beginner question posted to r/SEO in May 2026, someone described a sitemap with 41 discovered pages while the Page indexing dashboard showed fewer URLs and some URL Inspection records showed no referring sitemap. The key lesson is not to subtract these numbers as if they are guaranteed matching sets; they report different processes and potentially different update times.

First confirm whether the listed URLs are intended indexable canonicals, whether they are linked from the site, whether their public pages contain useful distinct content and whether Google has recorded a crawl for each. Google’s indexing decisions are separate from successfully parsing an XML file.

Original community question: r/SEO — Why sitemap and Page indexing numbers differ (May 2026). Community accounts are anecdotal, not a measured Google index ratio.

Another 2026 r/TechSEO question on GSC Couldn’t fetch for a Yoast sitemap index illustrates the need to distinguish the user’s browser result from Google’s last fetch, server/cache response and exact child-sitemap behavior. No claim is made that all Yoast sites have this issue.

An Audit Evidence Matrix You Can Use Today

Evidence or record

What to write down

Don’t conclude

XML index and child files

Public URL, HTTP code, parse state, bytes uncompressed, count of URLs or child loc tags

Google has already indexed all referenced pages

URL samples

Target status, final URL, canonical, robots/noindex, actual visible content

Every target behaves the same without representative testing

Sitemap lastmod

Timestamp and source CMS substantial change record

A newer date forces a Google recrawl

GSC Sitemaps

Submitted exact URL, last read, status, discovered pages, reported error

Discovered equals indexed or queued means crawled

GSC Page indexing / URL Inspection

Current report date, selected important URL, indexed/current test discrepancy

All URL counts are identical across reports

Site crawl / CMS export

Which URL families were actually reachable or missing from the index

Crawl limits/blocked areas never contain important pages

Common XML Sitemap Audit Mistakes

  • Assuming every site must use /sitemap.xml rather than finding the real submitted URL.

  • Checking only the top-level sitemap index and never opening its child files.

  • Treating a 200 HTTP response containing an HTML error page as valid sitemap XML.

  • Counting a compressed .gz file’s download bytes rather than its uncompressed size.

  • Listing redirect source URLs, retired 404s, blocked variants and wrong canonicals as preferred indexable pages.

  • Changing lastmod every day without a meaningful actual page change.

  • Treating priority and changefreq as Google indexing instructions.

  • Expecting Search Console’s Discovered pages count to equal Indexed pages.

  • Believing one Search Console report lists every sitemap Google may discover.

  • Repeatedly resubmitting an unchanged sitemap instead of fixing a real fetch or parse error.

  • Assuming a URL listed in XML has enough useful content and internal links to be indexed.

  • Using a CMS preview or draft route as proof that its article is in the current public sitemap.

Final XML Sitemap Troubleshooting Checklist

  • Find and record the real public sitemap or index on the production hostname.

  • Confirm successful public HTTP response, proper XML body, parsable encoding and decompression.

  • Follow and inspect all relevant child sitemap references; don’t stop at the valid parent index.

  • Check each file’s 50,000-URL/50-MB uncompressed limits and index child-reference limits.

  • Sample important URLs for status, canonical, indexability, site ownership and content accuracy.

  • Use truthful lastmod; do not rely on priority/changefreq or obsolete ping endpoints.

  • Compare Search Console’s last fetch status to current live evidence and resolve specific errors.

  • Interpret Discovered pages as parsed sitemap URLs, not Google’s Indexed count.

  • Reconcile CMS published pages, internal links and sitemap entries; fix generator root causes and retest.

A clean sitemap is valuable because it accurately describes the pages your site wants search engines to consider. But it remains one discovery signal, not a promise of Google crawling, indexing, traffic or rankings. The strongest audit combines valid XML, truthful current URLs, a repeatable generator and careful interpretation of Google Search Console.

For the broader foundation, use How to Do a Technical SEO Audit Step by Step. For choosing a crawler instead of troubleshooting XML, compare Best Website Audit Tools and Best Technical SEO Tools. When preparing a redesign, use SEO Website Migration Checklist.

FAQs

How do I audit an XML sitemap in 2026?

Find the live sitemap or sitemap index for your production website, then verify its HTTP response, XML structure, child-sitemap references and file limits. Sample its listed URLs and check that intended public pages use correct canonical addresses, return the expected status and are not accidentally blocked or noindexed. In Google Search Console, distinguish 'Couldn't fetch' from parsing errors and 'Discovered pages' from indexed URLs. Fix the generator or routing cause, retest the live sitemap and compare later Google reports. A valid or submitted sitemap does not guarantee indexing.

Why does Google Search Console say 'Couldn't fetch' when the sitemap opens in my browser?

Search Console reports Google's last recorded fetch, which may be older than the current browser response. Check the exact sitemap URL, property, robots.txt rules, HTTP 404/403/5xx responses, CDN or firewall behavior, authentication and whether an index references a failing child file. Review the sitemap details and test the same URL using Search Console's live inspection guidance where available. A browser opening the XML is helpful evidence but does not prove Google could fetch it at its last attempt.

How many URLs can an XML sitemap or sitemap index contain?

Google's sitemap limit is 50,000 URLs or 50 MB uncompressed per sitemap file. When either limit would be exceeded, divide URLs across multiple valid child sitemaps and reference them with a sitemap index. A sitemap index can list up to 50,000 sitemap loc references, and Google's documentation permits submitting up to 500 sitemap index files per site in Search Console. These technical file limits are not targets for how many pages should be indexed.

Why are fewer pages indexed than the sitemap's 'Discovered pages' count?

The Sitemaps report's Discovered pages figure counts URLs parsed from submitted sitemaps, not pages that Google has crawled, indexed or ranked. Some pages may be duplicates, redirects, intentionally excluded or not selected for indexing. Compare the Page indexing report by submitted sitemap and inspect representative important URLs. A successfully processed sitemap does not obligate Google to index every listed page.

Should I change lastmod daily or resubmit my sitemap to get indexed faster?

No. Use lastmod only when the page's meaningful content, structured data or links truly changed, and make it consistent with the actual published URL. Google ignores sitemap priority and changefreq hints, and its old unauthenticated sitemap ping endpoint was deprecated. A legitimate update may help Google schedule a revisit, but falsely setting every lastmod to today's date or repeatedly resubmitting a valid sitemap cannot guarantee faster crawling, indexing or higher rankings.

Author

Shailesh Thakor
Shailesh Thakor

Webflow & Framer Developer | Web Design & SEO Enthusiast

Shailesh Thakor is a Webflow and Framer developer specializing in modern, responsive websites and user-friendly digital experiences. His interests include website performance, technical SEO, AI-powered tools, and SaaS technologies. Through 8Spark, he shares practical insights into website builders, digital tools, and emerging technologies, with a focus on helping businesses and individuals make informed technology decisions.