Skip to content
Technical SEO 4 min read

XML Sitemaps: Creation, Splitting and Coverage Checks

Build and maintain XML sitemaps that work: URL limits, lastmod accuracy, sitemap indexes, and how to check which URLs are actually indexed.

XML Sitemaps: Creation, Splitting and Coverage Checks
Key takeaways
  • A sitemap helps discovery; it does not guarantee indexing.
  • Only include canonical, indexable URLs you want crawled.
  • Keep lastmod accurate — fake freshness teaches crawlers to ignore it.

An XML sitemap lists the URLs you want search engines to crawl, with optional lastmod dates that signal freshness. It does not guarantee indexing — it helps discovery. This guide covers creation, splitting, and the coverage checks that catch silent losses.

What a sitemap should contain

Only canonical, indexable URLs returning 200 status. Exclude noindexed pages, redirect chains, and parameter duplicates. Each entry can carry lastmod, and accurate lastmod dates help search engines prioritize recrawls of content you actually changed.

Format and limits

Standard limits: 50,000 URLs per file or 50MB uncompressed. Larger sites split into multiple files and reference them from a sitemap index. Keep the sitemap referenced in robots.txt and submitted in Google Search Console.

Coverage problems

Three failures show up in real audits: URLs declared in the sitemap that are noindexed or non-canonical, important pages missing from the sitemap entirely, and lastmod dates that never change even when content does. Run the comparator to see which of your sitemap URLs are actually indexed.

Sitemaps and AI crawlers

Most AI crawlers read sitemaps too. Fresh lastmod dates in your sitemap are one of the freshness signals answer engines use when deciding which sources to re-fetch.

Generating and maintaining sitemaps

For small sites, a generated sitemap from your CMS or the XML sitemap generator is sufficient. For large or static sites, build the sitemap from your deploy pipeline so it updates with every release. Whatever the source, keep lastmod dates honest — inflated freshness signals train crawlers to distrust your sitemap, which slows discovery of genuinely new pages.

Splitting and indexing large sitemaps

When you exceed 50,000 URLs or 50MB, split by section and reference all parts from a sitemap index file. Keep each part topically coherent — a sitemap of all product pages, another of all blog posts — so crawl prioritization stays sensible. The splitter and merger tools handle both directions: breaking large files apart and consolidating fragments from legacy systems.

Closing the coverage loop

The coverage comparator is the verification step most sites skip. It takes your sitemap URLs, checks them against what Google reports as indexed, and returns three lists: indexed (healthy), submitted but not indexed (quality or canonical problem), and indexed but not submitted (add to sitemap or noindex). Work the middle list monthly — it is where silent traffic losses hide.

A minimal sitemap that passes validation

Start with valid XML, absolute URLs, and a lastmod date you can defend. This is enough for most small sites:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/guide/</loc>
    <lastmod>2026-10-15</lastmod>
  </url>
</urlset>

Do not add priority or changefreq values unless your CMS can keep them meaningful. Search engines largely ignore them, and stale values create noise. For large sites, split the sitemap by content type and use a sitemap index so each file stays under the size and URL limits.

Index coverage workflow

  1. Compare sitemap URLs with the canonical URLs Google reports.
  2. Remove redirects, 404s, noindexed pages, and parameter duplicates from the sitemap.
  3. Check that new pages are discovered within days, not weeks.
  4. Investigate “Discovered — currently not indexed” pages for thin content or weak internal links.
  5. Resubmit only after the source of the mismatch is fixed.

The sitemap is a diagnostic input, not a lever. Resubmitting the same file every day does not make a thin page rank; it just repeats the same signal.

lastmod mistakes that waste crawl budget

  • Build timestamp: every deploy changes every date, so nothing looks genuinely fresh.
  • Future dates: lastmod ahead of the current date is treated as unreliable.
  • Content-free edits: changing a template or ad slot should not claim the article changed.
  • Missing dates: a stable lastmod helps crawlers prioritise real updates.

Set lastmod from the article’s meaningful content update, not the render time. If your CMS cannot separate those events, omit lastmod rather than publishing a misleading value.

Free tools in this hub

Frequently asked questions

Does a sitemap guarantee my pages get indexed?

No. A sitemap helps discovery and prioritization. Indexing still depends on content quality, internal links, and the page's overall signals.

Should every page be in the sitemap?

Every canonical, indexable page you want ranking should be. Thin, duplicate, or noindexed pages should not be listed.

How often should I regenerate the sitemap?

Whenever you add, remove, or substantially update pages. Automate it if your CMS supports it, and keep lastmod dates honest.

Share X LinkedIn Email
Want a quick SEO check on a page? Run the free SEO checker and get a scored report with prioritised fixes.
Free SEO checker

Reviewed by TheLinksMaster

SEO Editorial Team

Our editorial team tests every tool and guide on this site against real websites. We update content when search algorithms change so you always get current, practical SEO advice.

How we test and update our guides · Meet the editorial team

Start with these guides

Canonical Tags Explained: The Complete Guide A complete guide to canonical tags - what they are, why they matter, how to impl... Robots.txt: How to Control Crawlers Without Blocking Rankings Robots.txt rules explained: allow and disallow syntax, robots.txt versus noindex... Core Web Vitals Explained: Improve LCP, INP, and CLS A practical guide to Core Web Vitals - what LCP, INP, and CLS measure, how to te...
Free WHOIS lookup Lookup ownership information for a domain. Review registrar, creation date… Free MD5 generator Generate a hash value using the MD5 algorithm. Create checksums for data… Free UTM builder Add UTM campaign parameters to a URL and build shareable tracking links. Keep… Free XML sitemap checker Validate and preview the primary XML sitemap of a domain. Confirm the sitemap… Free Sitemap URL extractor Extract URLs from an XML sitemap or sitemap index. Pull the full URL list for… Free Pagination tags checker Inspect prev, next, and canonical pagination signals on a page. Catch broken…
Redirects: 301, 302 and How to Kill Redirect Chains Redirect guide: which code to use, how chains and loops waste crawl budget, and... Schema Markup: JSON-LD Formats That Earn Rich Results Schema markup guide: which JSON-LD formats matter in 2026, how to implement and... Robots.txt: How to Control Crawlers Without Blocking Rankings Robots.txt rules explained: allow and disallow syntax, robots.txt versus noindex... Meta Tags: The Complete Guide to Titles, Descriptions and Robots Everything about meta tags: which ones matter, how to write titles and descripti... International SEO: How to Use hreflang Without Breaking Your Site Use hreflang without breaking your site: language vs country choices, the exact...
← All guides