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.
widget.sitemapValidator.hint
How to Use the XML Sitemap Validator
Enter a domain or a direct sitemap URL and click Validate. When you enter a domain, the tool automatically tries /sitemap.xml and /sitemap_index.xml.
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