Choose a way to do this check
XML sitemap tester
- Check the index and each representative child separately.
- Verify XML, entry limits and dates. Use a desktop validator for large files beyond the browser tool’s input limit.
Crawler and spreadsheet
- Compare URLs across product, guide and other child files and look for duplicates.
- Test a sample of old and recently changed entries to confirm the intended lastmod source.
Search Console Sitemaps report
- Submit the index and review processing and read dates.
- If a child file fails, check its live HTTP response and rebuild the affected file.
1. Choose the split and file scope
A sitemap has a limit of 50,000 URLs or 50 MB uncompressed. Build smaller files when either limit may be exceeded, including when files are served with compression. Split by a useful publishing boundary such as products and editorial guides, then partition the largest groups predictably. Keep the index at the root unless you have checked the relevant location and submission rules.
2. Publish the sitemap index
Use absolute locations for each child file. Generate the children before publishing the index that points to them. Use the sitemap namespace and validate all files. The index below omits lastmod because its child modification dates are unknown.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://www.example.com/sitemap-products-01.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.example.com/sitemap-guides-01.xml</loc>
</sitemap>
</sitemapindex>3. Use a date that describes the page
Generate each URL entry’s lastmod from a reliable record of the last significant change. If your CMS timestamp updates for routine builds or cosmetic edits, use an appropriate editorial or content field instead. Omit lastmod when you do not have an accurate value. Lastmod in a sitemap index, if supplied, describes modification of the child sitemap, not every URL in that file.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/guides/canonicals/</loc>
<lastmod>2026-11-20</lastmod>
</url>
</urlset>4. Verify the files and sample the listed URLs
Check that each child returns 200 with the intended XML, and measure bytes after decompression. Count loc entries, check duplicates across files and verify a sample of canonical addresses. Compare lastmod values with genuine known edits and unchanged pages. Submit the index and monitor whether the children are read. If a publishing job produces broken children, restore the previous consistent index and files together.
Technical references
Frequently asked questions
Can I put 60,000 URLs in one compressed file?
No. The URL limit still applies and size is measured uncompressed.
Should every lastmod change after a rebuild?
No. A URL date should reflect an actual significant page change.
What if I cannot trust the date source?
Omit the value until you have a reliable source.
Does an accepted sitemap mean every URL was indexed?
No. It confirms the file was read, while selection happens separately.
Written by Richie Aubin
Published
