Skip to main content
F
Foglift
All Tools

XML Sitemap Validator

Validate your XML sitemap for errors, missing fields, and SEO issues. Check URL count, lastmod dates, changefreq values, and overall structure.

What is an XML Sitemap?

An XML sitemap is a file that lists all the important pages on your website, helping search engines like Google discover and crawl your content efficiently. It follows a standardized XML format defined by sitemaps.org and typically lives at example.com/sitemap.xml. Each URL entry can include metadata like the last modification date, change frequency, and priority to guide search engine crawlers.

Why Validate Your Sitemap?

Indexing Issues

A malformed sitemap can prevent search engines from discovering your pages. XML errors, missing <loc> tags, or invalid URLs cause crawlers to abandon your sitemap entirely.

Incorrect Dates

Invalid lastmod dates mislead search engines about when content was updated. This can cause Google to skip re-crawling updated pages or waste crawl budget on stale content.

URL Limit Compliance

Sitemaps are limited to 50,000 URLs and 50MB uncompressed. Exceeding these limits means some URLs won't be processed. Use a sitemap index to split large sites.

Crawl Efficiency

Proper changefreq and priority values help search engines prioritize which pages to crawl first and how often, making the most of your site's crawl budget.

Frequently Asked Questions

What should an XML sitemap contain?

Every sitemap needs a <urlset> root element with the sitemaps.org namespace, and at least one <url> entry with a <loc> tag containing the full URL. Optional elements include <lastmod> (last modification date in W3C format), <changefreq> (how often the page changes), and <priority> (relative importance from 0.0 to 1.0).

What is a sitemap index file?

A sitemap index is a special sitemap that references other sitemaps. It uses <sitemapindex> as the root element instead of <urlset>. This is useful for large sites that exceed the 50,000 URL limit per sitemap. Each child sitemap listed in the index can contain up to 50,000 URLs.

Does Google use changefreq and priority?

Google has stated that it largely ignores changefreq and priority values. However, other search engines like Bing may still use them. The lastmod date is the most useful metadata element — Google does use it to decide when to re-crawl pages, but only if the dates are consistently accurate.

How do I submit my sitemap to Google?

You can submit your sitemap through Google Search Console under the Sitemaps section. You can also reference it in your robots.txt file with a Sitemap: directive (e.g., Sitemap: https://example.com/sitemap.xml). Google will also discover sitemaps referenced in robots.txt automatically.

How often should I update my sitemap?

Your sitemap should be updated whenever you add, remove, or significantly update pages. Many CMS platforms (WordPress, Shopify, etc.) generate sitemaps dynamically. For static sites, regenerate your sitemap as part of your build process. Always make sure lastmod dates accurately reflect when content was last changed.