Quick answer: An xml sitemap audit is a full check of the sitemap file that tells search engines which pages on your site exist and should be indexed. You audit it by finding the sitemap, opening it, checking every URL it lists for the right status code, the right content and the right settings, and then comparing it with what Google Search Console actually reports as indexed. The most common errors are dead links, redirected URLs, blocked pages, pages marked noindex, wrong last-modified dates, and sitemaps that are out of date or too large. Fixing those errors does not guarantee that every page will be indexed, but it removes one of the most common reasons Google ignores or delays indexing, and it helps Googlebot spend its crawl time on pages that matter. Run this audit at least once every three months, and again after any redesign, migration, or large content change.
Your XML sitemap is a map of your website for search engines. It lists the pages you want Google to find, and it gives Google extra information about each page, such as when it was last changed. A clean sitemap helps Google discover new pages quickly and understand which pages you consider important. A broken or careless sitemap does the opposite: it sends Googlebot to dead pages, to pages you do not want indexed, and to URLs that redirect somewhere else. Over time Google learns to trust a bad sitemap less, and that means slower discovery and slower indexing for your new content.
Many site owners create a sitemap once and then forget about it. That is a mistake, because a sitemap goes out of date every time you publish, delete, redirect or change a page. This guide walks you through a complete xml sitemap audit, step by step, using only free tools and Search Console. You do not need to be a developer to do most of it, and the fixes are usually simple once you know what to look for.
What an XML sitemap is and what it is not
An XML sitemap is a file, usually called sitemap.xml, that lists the URLs of a website in a format search engines can read. Each entry normally includes the URL itself and the date it was last modified. It can also include extra information for images and videos, and how often a page changes, although the change frequency field is ignored by Google and is best left out or treated as a hint only.
A sitemap is a suggestion, not an instruction. Google is free to crawl and index pages that are not in your sitemap, and it is free to ignore pages that are in your sitemap. Submitting a sitemap does not force Google to index a page. What a sitemap does is help Google discover pages it might otherwise miss, especially new pages, pages that are deep in your site structure, and pages with few or no internal links pointing to them.
A sitemap cannot fix thin content, make a low-quality page rank, override a noindex tag, or make Google crawl a blocked page. Run the full Technical SEO Audit Checklist 2026 alongside this audit so you check the other causes too.
Step 1: Find your sitemap and check that it loads
The first step is simple: find out where your sitemap lives and confirm that it opens correctly.
- Try the usual locations. Most WordPress sites with an SEO plugin put the sitemap at the root of the site, under a name like sitemap.xml or sitemap_index.xml. Try adding those names to your domain in your browser address bar.
- Check your robots.txt file. A well-set-up site lists its sitemap in robots.txt. Open your robots.txt file and look for a line that names the sitemap location. If the sitemap is not listed there, add it later.
- Check Search Console. In Google Search Console, open the Sitemaps report. It shows every sitemap you have submitted, when it was last read, and whether Google found errors. If you have never submitted a sitemap, this is your first fix.
- Confirm the file returns a 200 status code. A sitemap that returns a 404 error, a redirect, or a server error is useless. It must return a normal 200 response. If your sitemap redirects to another URL, update every place that references it to point at the final URL.
- Confirm the file is valid XML. A single broken character can make a whole sitemap unreadable. Open the file in your browser: if the browser shows an error instead of a list of URLs, the file is broken and must be regenerated. Most SEO plugins regenerate sitemaps automatically; if yours does not, switch to one that does.
If you have a large site, you may have a sitemap index file that lists several smaller sitemaps, one for posts, one for pages, one for categories, and so on. That is normal and correct. Audit each child sitemap the same way you audit a single sitemap, and make sure the index file itself is valid and lists every child sitemap.
Step 2: Check the sitemap against the size and format limits
Google sets clear limits for sitemaps, and exceeding them means part of your sitemap is ignored.
- Maximum 50,000 URLs per sitemap file. If you have more than 50,000 URLs, split them across several sitemap files and list them all in a sitemap index.
- Maximum 50 MB uncompressed per file. Very large sitemaps are usually a sign that you are including too much, such as images or URLs that should not be there.
- URLs must be absolute and complete. Every entry must be the full URL, including the correct protocol and domain. Relative URLs are not allowed.
- Only one domain per sitemap, with one exception. A sitemap should list URLs from a single host. If you run several subdomains, each one needs its own sitemap.
- Use the correct character encoding. The file must use UTF-8 encoding, and special characters in URLs must be properly escaped. A URL with an unescaped ampersand or space can break the file.
- Keep the file consistent with the live site. If your site uses the version of the domain with www, your sitemap should use the same version. If it uses the version without www, the sitemap should match. Mixed versions create duplicate URL problems.
Step 3: Check every URL in the sitemap
This is the heart of the audit. Every URL in your sitemap should meet all of the following tests. A URL that fails even one of them should be removed or fixed.
Only indexable pages belong in the sitemap
Your sitemap should contain only pages you want Google to index. That sounds obvious, but many sitemaps are full of pages that should never be there:
- Pages that return a 404 error. A dead page in your sitemap wastes Googlebot’s time and signals that the sitemap is not maintained. Our guide on how to fix 404 errors explains how to find them and decide whether to restore, redirect or remove each one.
- Pages that redirect. A URL that redirects to another page should not be in the sitemap. List the final destination instead. Redirected URLs in a sitemap are one of the most common audit findings.
- Pages blocked by robots.txt. If robots.txt blocks a page, Googlebot cannot crawl it, so listing it in the sitemap is pointless and confusing. Check that your robots.txt rules and your sitemap agree; our guide on how to control AI crawlers with robots.txt explains how to review the file.
- Pages marked noindex. A noindex tag tells Google not to index a page. A page cannot be both noindex and in the sitemap. Pick one: if the page should be indexed, remove the noindex tag; if it should not, remove it from the sitemap.
- Pages behind a login or a paywall. Googlebot cannot see them, so they do not belong in a normal sitemap.
- Duplicate and near-duplicate pages. Printer-friendly versions, tag pages with almost no content, and near-identical product variants should not be listed. Choose one canonical version and list only that one.
- Low-value utility pages. Search result pages, filter combinations, and admin pages do not belong in a sitemap.
Step 4: Check lastmod dates and keep them honest
The lastmod field tells Google when a page was last changed. Google uses it to decide how often to re-crawl a page, so honest dates help Googlebot prioritise fresh content. Dishonest dates do the opposite: if every page claims to have changed today, Google learns to ignore your dates entirely.
Follow these rules:
- Update lastmod only when the page really changes. A meaningful change means the main content changed, not that you fixed a typo in the footer or changed a date in a sidebar.
- Never set lastmod to today’s date for every page. Some plugins and themes do this by default after an update. Check your sitemap after plugin updates and turn off any setting that refreshes all dates at once.
- Use the full date format. The date should be in the standard year-month-day format, with a time if you want to be precise. A date in the future is an error and should be fixed immediately.
- Match the date on the page. If the page itself shows a published or updated date, the sitemap date should agree with it. A mismatch looks careless and can confuse both Google and your readers.
- Regenerate the sitemap after bulk changes. After a redesign, a migration, or a round of content updates, regenerate the sitemap so the dates reflect the new reality.
If your sitemap generator does not let you control lastmod properly, that is a reason to change how the sitemap is generated. An honest lastmod is one of the easiest wins in a sitemap audit.
Step 5: Compare the sitemap with Search Console
Your sitemap says what you want indexed. Search Console says what Google actually did. Comparing the two is where the audit finds its most useful answers, and a clean sitemap is also part of crawl budget optimization because it points Googlebot at pages worth visiting.
- Open the Sitemaps report. For each submitted sitemap, Search Console shows how many URLs it discovered and how many it reports as indexed. A large gap between the two numbers means many of your sitemap URLs are not being indexed. That is your starting point for investigation.
- Open the Pages report. This shows why pages are not indexed: crawled but not indexed, discovered but not indexed, blocked, redirected, and so on. Each reason needs a different fix. Our guide on how to fix ‘Discovered – Currently Not Indexed’ walks through the most common one in detail.
- Check the “could not fetch” errors. If Google reports that it could not fetch your sitemap, the problem is usually a server error, a timeout, or a file that is too large. Fix the server issue first, then resubmit.
- Look for URLs in Search Console that are not in your sitemap. Google can find pages through internal links even if they are not in the sitemap. If important pages are missing from the sitemap, add them. If unimportant pages keep appearing, check your internal links and your robots.txt rules.
- Check the last read date. Search Console shows when Google last read each sitemap. If the date is old, Google may not be checking your sitemap often, which usually means it does not trust the sitemap or does not need to because your site is small and well linked. Resubmit after you fix the errors.
Keep a note of the numbers before and after your fixes: total URLs submitted, total indexed, and the main reasons for non-indexation. That record is the only honest way to tell whether the audit helped.
Step 7: Fix the common sitemap errors
These are the errors that appear in almost every audit, with the fix for each one.
Sitemap returns a 404 error
The sitemap file is missing or has moved. Regenerate it with your SEO plugin and check that the URL you submit in Search Console matches the real location. If you changed your permalink structure or your domain, update every reference, including robots.txt.
Sitemap contains redirected URLs
Replace every redirected URL with its final destination. If the final destination is already in the sitemap, simply delete the redirected entry. Then check why the redirects exist at all: old URLs that still get traffic should redirect once, directly, to the final page.
Sitemap contains blocked or noindex URLs
Remove the URL from the sitemap, or remove the block. Decide which the page needs. A page that should be indexed must be crawlable and indexable; a page that should not be indexed must not be in the sitemap. Do not leave it in both states.
Sitemap is out of date
New pages are missing and deleted pages are still listed. Turn on automatic sitemap generation if your plugin supports it, and set a calendar reminder to check the sitemap after every publishing batch. A sitemap that is months out of date is worse than no sitemap, because it teaches Google to distrust your signals.
Sitemap has the wrong domain or protocol
Every URL uses the secure version of the site and the same domain version as the live site. If you moved from the non-secure version to the secure version, or from www to non-www, update the whole sitemap. Mixed protocols and mixed domain versions are a common leftover from migrations.
Sitemap is too large
Split it into smaller sitemaps by section and use a sitemap index file. While you are splitting it, remove the low-value URLs that made it too large in the first place. A smaller, cleaner sitemap is always better than a large, dirty one.
Google reports “sitemap could not be read”
Check the file in your browser first. If it loads for you but not for Google, the cause is usually a server block, a firewall rule, or a file that times out because the server is slow. Ask your host to check the server logs for Googlebot requests to the sitemap URL.
The xml sitemap audit checklist
- [ ] Sitemap found and loading with a 200 status code
- [ ] Sitemap listed in robots.txt and submitted in Search Console
- [ ] Sitemap index valid; every child sitemap checked
- [ ] File under 50,000 URLs and 50 MB; URLs absolute and on one domain
- [ ] Every URL checked in bulk — no 404s, redirects, blocks or noindex pages
- [ ] Canonical URLs listed, not duplicate or alternate versions
- [ ] Lastmod dates honest and matching the real change dates
- [ ] Sitemap numbers compared with Search Console Pages report
- [ ] Image and video sitemaps checked, if used
- [ ] Errors fixed, sitemap regenerated, and resubmitted in Search Console
- [ ] Re-check scheduled in three months, or after the next big site change
FAQ
What is an xml sitemap audit?
An xml sitemap audit is a full check of your sitemap file. You confirm it loads correctly, check that every URL in it is indexable and returns a 200 status code, verify the lastmod dates are honest, and compare the sitemap with Google Search Console to see which listed pages are actually indexed. The goal is a clean sitemap that helps Google discover and index your important pages.
How often should I audit my XML sitemap?
Audit your sitemap at least once every three months, and again after any redesign, migration, or large batch of new or deleted pages. You should also check it after a Google core update, because changes in what Google indexes can show up first in the gap between submitted and indexed URLs.
Does a sitemap guarantee my pages will be indexed?
No. A sitemap is a suggestion that helps Google discover pages, but Google decides what to index based on content quality, crawl access, internal links, and many other factors. A clean sitemap removes one common barrier to indexing, but it cannot force Google to index a low-quality or duplicate page.
Should I include every page of my site in the sitemap?
No. Include only pages you want indexed: real content pages that return a 200 status code, are not blocked by robots.txt, are not marked noindex, and are the canonical version of the content. Leave out utility pages, search results, filter combinations, admin pages, and duplicates.
What is the difference between a sitemap and a sitemap index?
A sitemap is a single file listing up to 50,000 URLs. A sitemap index is a file that lists several sitemaps, which is how large sites organise their URLs by section. Small sites usually need only one sitemap; large sites use an index file plus one sitemap per section, such as posts, pages, and products. If you use structured data, our guide on FAQ schema in WordPress without a plugin explains how to add it by hand.
Leave a Reply