XML Sitemap Validator
Free XML sitemap checker: find broken XML, invalid URLs, bad lastmod dates, duplicates, dead links and pages missing from your sitemap or sitemap index.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
XML Sitemap Validator
Validate an XML sitemap or sitemap index: broken XML, invalid or relative URLs, bad lastmod dates, duplicates, dead or redirecting URLs and pages missing from the sitemap.
An XML sitemap validator checks that your sitemap follows the sitemaps.org protocol and that search engines can actually use it. Enter a sitemap URL, or just your domain and the tool finds the sitemap in robots.txt. It reports broken XML, a wrong namespace, relative or malformed URLs, invalid lastmod dates, duplicates, URLs on another host, the 50,000 URL and 50 MB limits and hreflang mistakes; validates up to 10 child sitemaps of a sitemap index; checks that the listed URLs really return 200; and compares your homepage links with the sitemap to find pages that are missing from it.
How to use XML Sitemap Validator
- 1
Enter your sitemap URL (example.com/sitemap.xml) or just the domain, or paste the XML.
- 2
Choose how many URLs to check live (up to 500), then press Validate sitemap.
- 3
The tool downloads the sitemap (gzip and sitemap indexes included) and validates every entry.
- 4
It checks a sample of URLs for errors, redirects and noindex, and lists homepage pages missing from the sitemap.
- 5
Fix the errors in your sitemap generator or CMS plugin, then resubmit the sitemap in Google Search Console.
Why use XML Sitemap Validator
Protocol and Google rules together
Checks the sitemaps.org format and flags what Google actually ignores, such as changefreq, priority and identical build-time lastmod dates.
Live URL check
Finds listed URLs that return 404, 5xx, redirect or send noindex, the main reason a sitemap is not trusted.
Missing pages found
Compares links on your homepage with the sitemap to show indexable pages you forgot to list.
What makes an XML sitemap valid?
A valid sitemap is UTF-8 XML with a <urlset> (or <sitemapindex>) root that declares xmlns="http://www.sitemaps.org/schemas/sitemap/0.9". Each <url> has a required <loc> with a full, absolute URL (http or https, with the domain) no longer than 2,048 characters, and optional <lastmod>, <changefreq> and <priority>. Special characters must be escaped: & becomes &.
One sitemap can hold at most 50,000 URLs and 50 MB uncompressed. Larger sites split their URLs into several sitemaps and list them in a sitemap index. URLs should be on the same host as the sitemap, be the canonical version, return 200 and not be noindex.
Does Google use lastmod, changefreq and priority?
Google uses <lastmod> when it is consistently accurate, meaning it changes only when the page content really changes, in W3C Datetime format such as 2026-11-29 or 2026-11-29T10:30:00+05:30. Google ignores <changefreq> and <priority>. A sitemap where every URL has the same lastmod (the time the file was generated) teaches Google to ignore the date.
How to fix common sitemap errors
“Sitemap could not be read” or XML parse errors: open the URL in a browser; if you see an HTML page, a PHP warning or a blank line before <?xml, fix the generator or plugin. Unescaped & in URLs must become &. URLs that 404 or redirect: regenerate the sitemap so it lists only final, live, canonical URLs. Then add a Sitemap: line to robots.txt and resubmit in Search Console.
Common use cases
- Search Console says “Couldn't fetch” or “Sitemap could not be read” and you need to know which line breaks the XML.
- An SEO agency audits a client's Yoast or Rank Math sitemap index and finds URLs that redirect or 404.
- After a redesign, a site owner checks that every important page is still listed with a real lastmod date.
Frequently asked questions
How do I check if my sitemap is valid?
Enter the sitemap URL or your domain in this XML sitemap validator. It checks the XML, the sitemaps.org namespace, every <loc>, lastmod format, duplicates and size limits, validates child sitemaps of an index, and live-checks the URLs. A score of 90 or more with no errors means search engines can read it.
Link to answerWhy does Search Console say my sitemap couldn't be fetched?
Usually the URL returns an error or redirect, is blocked by robots.txt or a firewall, or the response is not XML (an HTML error page). This tool shows the HTTP status, redirect and content type, and the exact XML parse error if the file is broken.
Link to answerHow many URLs can a sitemap have?
Up to 50,000 URLs and 50 MB uncompressed per sitemap file. For more, create several sitemaps and list them in a sitemap index, which can itself list up to 50,000 sitemaps.
Link to answerWhat date format does lastmod use?
W3C Datetime: a date like 2026-11-29, or a date and time with a timezone such as 2026-11-29T10:30:00+05:30 or 2026-11-29T05:00:00Z. Formats like 29/11/2026 or a time without a timezone are invalid.
Link to answerShould every page be in my sitemap?
Every canonical, indexable page you want in search should be. Leave out redirects, 404s, noindex pages, duplicates, parameter and filter URLs, login, cart and internal search pages.
Link to answerCan a sitemap list URLs from another domain?
Normally no: a sitemap may only list URLs on its own host. The exception is cross-submission, where both sites are verified in the same Search Console account or the target site's robots.txt points to the sitemap.
Link to answerDoes this validator support sitemap index and .xml.gz files?
Yes. It reads sitemap indexes and validates up to 10 child sitemaps, and it unpacks gzip-compressed .xml.gz sitemaps automatically. Hreflang alternates written as xhtml:link are validated too.
Link to answer