Tested tool guide
Tested browser tools
Checked August 16, 2026
What Sitemap XML Validator does, with a checked example
Paste the contents of a sitemap file and this tool checks it against the Sitemaps 0.9 protocol, the format search engines expect. It verifies the XML is well formed, that the root element is a urlset in the sitemaps namespace, and that each url entry follows the rules: a required absolute loc, a W3C-format lastmod, a changefreq from the seven allowed values, and a priority between 0.0 and 1.0. Violations are reported with their position, and the tool displays the total URL count. The surprise is that well-formed XML is not automatically a valid sitemap: a missing xmlns, a relative loc, or a misspelled changefreq all fail, and a clean result says nothing about whether Google will index anything.
Worked example
A concrete input and expected output from the current implementation.
Input
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>https://example.com/about</loc>
<changefreq>sometimes</changefreq>
</url>
</urlset> ->
Expected output
Valid: no (1 error)
URLs found: 2
url #2 (https://example.com/about):
<changefreq> "sometimes" is not allowed.
Allowed values: always, hourly, daily, weekly, monthly, yearly, never
Entry 1 passes because weekly is one of the seven allowed changefreq values. Entry 2 fails even though the XML is well formed, because changefreq is restricted to those values - the classic case of a file that parses as XML but violates the sitemap rules.