XML Sitemap Validator
Validate any XML sitemap or sitemap index. Check URL count, detect errors and warnings, verify the namespace, and preview the first 20 URLs with their lastmod, changefreq, and priority values.
Enter a domain (auto-discovers sitemap.xml) or a direct sitemap URL.
How to Use the XML Sitemap Validator
Enter a domain (e.g. example.com) or a direct sitemap URL (e.g. https://example.com/sitemap.xml) and click Validate. When you enter a domain, the tool automatically tries /sitemap.xml and /sitemap_index.xml.
What the Validator Checks
Sitemap type
Detects whether the file is a standard URL set (urlset) or a sitemap index (sitemapindex).
XML namespace
Verifies the standard sitemaps.org namespace is declared, which is required for Google to recognize the file.
URL count
Counts total URLs in the sitemap. Flags sitemaps exceeding the 50,000 URL limit.
Missing <loc>
Every <url> entry must have a <loc> element. Missing loc tags are flagged as errors.
Priority values
Validates that priority values are between 0.0 and 1.0, as required by the sitemap protocol.
Image & video sitemaps
Detects use of image: and video: XML namespace extensions for rich media sitemaps.
Sitemap Best Practices for SEO
| Practice | Recommendation |
|---|---|
| Include canonical URLs only | Only include the canonical version of each URL. Do not include noindex, redirected, or paginated URLs (Google ignores them anyway). |
| Use HTTPS throughout | All URLs in your sitemap should use HTTPS to match your canonical URLs and avoid redirect chains. |
| Update lastmod accurately | Only set lastmod when content genuinely changed. Use ISO 8601 format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS+00:00. |
| Declare in robots.txt | Add Sitemap: https://example.com/sitemap.xml to your robots.txt so all crawlers find it automatically. |
| Submit to Search Console | Submit your sitemap in Google Search Console and Bing Webmaster Tools for faster indexing and error reporting. |
| Compress large sitemaps | Sitemaps over 10MB should be gzip compressed. The limit is 50MB uncompressed or 50,000 URLs per file. |
Sitemap Index Structure
For large websites, a sitemap index file organizes multiple child sitemaps. Each child sitemap covers a different section of the site — for example, separate sitemaps for blog posts, product pages, and category pages. When the validator detects a sitemap index, it lists all child sitemaps and reports the total count. You can then run the validator on each child sitemap URL individually to inspect their contents.
The sitemap index format uses a <sitemapindex> root element containing <sitemap> entries, each with a <loc> pointing to a child sitemap URL and an optional <lastmod>.
Frequently Asked Questions
What is an XML sitemap and why is it important for SEO?
An XML sitemap is a file that lists all the URLs of a website that you want search engines to crawl and index. It can also include metadata for each URL such as the last modification date, change frequency, and priority. Sitemaps help search engines discover pages faster, especially for large sites, newly launched sites, or sites with poor internal linking. Google, Bing, and other search engines use XML sitemaps as a signal to understand site structure and prioritize crawling.
What is the difference between a sitemap URL set and a sitemap index?
A URL set sitemap (urlset) contains individual page URLs and their metadata. A sitemap index (sitemapindex) is a parent file that points to multiple child sitemaps. Use a sitemap index when your site has more than 50,000 URLs or when the sitemap file exceeds 50MB uncompressed — the maximum limits per sitemap file. Large e-commerce sites and news sites commonly use sitemap indexes with separate sitemaps for products, categories, and articles.
Do lastmod, changefreq, and priority affect rankings?
Google officially states that it ignores changefreq and priority values in sitemaps. However, lastmod (last modification date) is used as a hint for recrawling — accurate lastmod dates help Googlebot prioritize content that has actually changed. Inaccurate lastmod dates (e.g. always setting today's date) teach Google to ignore your lastmod signals entirely. Only include lastmod when content genuinely changed, and use the ISO 8601 date format (YYYY-MM-DD).
What are image sitemaps and video sitemaps?
Image sitemaps use the image: XML namespace extension to provide additional metadata about images on your pages. Including image URLs in your sitemap helps Google discover images that might not be found through regular crawling, especially images loaded via JavaScript. Video sitemaps similarly use the video: namespace to provide metadata about video content (title, description, thumbnail URL, duration) which can improve how your video results appear in Google Search.
Related Tools
Need a Full Technical SEO Audit?
Our SEO experts review your sitemap, robots.txt, crawl coverage, indexing issues, and more to build a comprehensive technical action plan.
Get a Free SEO Audit