Validate your XML sitemaps against Google's guidelines. Check format, URL count, size limits, and common errors with an overall health score. Enter a URL or paste XML directly.
Check Sitemap
Validating sitemap...
Parsing XML, checking structure, and analyzing entries against Google's guidelines.
About the XML Sitemap Checker
Sitemaps help search engines discover and crawl your pages. An invalid sitemap can reduce the usefulness of that sitemap as a discovery signal. It does not necessarily prevent pages from being discovered through links or other sources. This tool validates your sitemap against XML standards and Google's guidelines, giving you a health score (0-100) with detailed breakdowns.
XML Structure
Validates well-formed XML and proper namespace declarations for sitemaps and sitemap indexes.
URL Count & Size
Checks against Google's 50,000 URL limit and 50MB file size limit, with warnings when approaching limits.
It validates syntax and structure: valid XML syntax, sitemap vs sitemap index detection, total URL count, missing <loc> elements, invalid lastmod dates, non-absolute URLs, duplicate URLs, whether the sitemap exceeds 50,000 URLs or 50MB, namespace validity, and proper encoding declarations. Every check is weighted into an overall health score (0-100).
What's the difference between a sitemap and a sitemap index?
A standard sitemap contains <url> entries listing individual page URLs (up to 50,000 per file). A sitemap index contains <sitemap> entries pointing to other sitemap files. Sitemap indexes allow you to split large sites across multiple sitemap files and are required when you have more than 50,000 URLs.
What are the Google sitemap limits?
Google enforces two hard limits per sitemap: (1) Maximum 50,000 URLs per sitemap file, and (2) Maximum 50 MB uncompressed file size. If your site exceeds either limit, use a sitemap index file pointing to multiple sitemaps, each staying within these limits. You can gzip your sitemap for faster transfers.
Should I include non-200 URLs in my sitemap?
No — your sitemap should only contain URLs that return HTTP 200 (OK). Including 404s, 301s, 5xx errors, or soft-404 pages wastes crawl budget and may lead Google to trust your sitemap less over time. Only include canonical, indexable pages that you want search engines to discover.
Can I use a sitemap for images and videos?
Yes. Google supports image and video extensions to the sitemap protocol. You can nest <image:image> and <video:video> tags inside your <url> entries. This tool detects whether your sitemap uses these extensions and validates the basic structure.
What is the correct sitemap namespace?
The standard sitemap namespace is http://www.sitemaps.org/schemas/sitemap/0.9. All <urlset> or <sitemapindex> elements must declare this namespace. Image and video extensions have their own namespaces: http://www.google.com/schemas/sitemap-image/1.1 and http://www.google.com/schemas/sitemap-video/1.1.
How often should I update my sitemap?
Update your sitemap whenever you add, remove, or significantly change pages on your site. For large sites with frequent content changes, daily updates are best. For smaller or static sites, weekly or monthly updates are sufficient. Google recommends using the <lastmod> element to indicate when a page was last modified.
Where do I submit my sitemap to Google?
Submit your sitemap URL (e.g., https://example.com/sitemap.xml) via Google Search Console under Sitemaps section. You can also reference it in your robots.txt file by adding: Sitemap: https://example.com/sitemap.xml. Google crawlers discover sitemaps from both robots.txt and Search Console.
Can a sitemap index reference another sitemap index?
No — sitemap indexes cannot be nested. A sitemap index can only point to standard sitemap files, not to other sitemap indexes. If you need deeper hierarchy, flatten it into a single sitemap index pointing directly to all your standard sitemaps.
Does the order of URLs in a sitemap matter?
URL order does not affect crawling priority or frequency. Google crawls sitemap URLs based on many factors including the page's importance, update frequency, and crawl budget.