Skip to main content
SEO Tools

Sitemap XML Validator

Paste sitemap XML to inspect its structure and URL entries.

๐Ÿ”’ This tool runs locally in your browser. HELPERG does not upload or store your content. No remote fetching is performed.

Related: Robots.txt Validator ยท AI search visibility ยท WebmasterID docs

What the validator reports

Paste the contents of a sitemap.xml file and press Inspect. The XML is parsed in your browser and summarised:

  • URLs and <url> entries โ€” how many <loc> values and URL blocks the file contains.
  • Duplicates โ€” the same address listed more than once, with the repeated URLs shown below the summary.
  • Invalid-looking โ€” <loc> values that do not start with http:// or https://, such as relative paths.
  • Missing lastmod โ€” URL entries without a <lastmod> date.
  • https / http โ€” how many addresses use each protocol, which exposes mixed-protocol sitemaps.
  • First URLs โ€” the first ten addresses, so you can see at a glance that the file belongs to the right site.

If the XML itself is malformed โ€” an unclosed tag or an unescaped & in a URL โ€” you get the parser error instead, which usually points straight at the broken line.

What a healthy sitemap contains

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/pricing.html</loc>
    <lastmod>2026-11-02</lastmod>
  </url>
</urlset>
  • Absolute URLs on the same protocol and host as the site.
  • Only canonical pages that return 200: no redirects, no noindex pages and no 404s.
  • At most 50,000 URLs and 50 MB uncompressed per file; larger sites split into several files listed in a sitemap index.
  • <lastmod> set to the date the content really changed. Google ignores <priority> and <changefreq>, but it does use an accurate lastmod.

How to fix what it finds

  • Duplicates usually come from a generator that lists both /page and /page/, or both a tagged and a clean URL. Keep only the canonical form.
  • http entries on an https site make crawlers follow a redirect for every URL. Regenerate the file with https addresses.
  • Invalid-looking entries are almost always relative paths. The sitemap protocol requires full URLs.
  • Missing lastmod is allowed, but adding real modification dates helps search engines decide what to recrawl first.

What this check does not cover

The tool reads only the XML you paste. It does not request your URLs, so it cannot see status codes, redirects or noindex tags, and it is not a formal XSD schema validation. After fixing the file, submit it in Google Search Console and add a Sitemap: line to robots.txt โ€” the Robots.txt Validator checks that line. The sitemap XML guide explains the whole process in more depth.

FAQ

Does it fetch sitemaps from a URL?

No. It only parses the XML you paste. There is no remote fetching; parsing happens entirely in your browser.

What does invalid-looking mean?

A loc value that does not start with http:// or https:// is flagged as invalid-looking. This is a heuristic, not a formal schema validation.

Should every page be in the sitemap?

No. List only pages you want indexed: canonical, indexable pages that return 200. Leave out redirects, duplicates, filtered or tagged URLs and pages marked noindex.

Does a sitemap guarantee indexing?

No. A sitemap helps search engines discover and recrawl pages, but each page is still judged on its own content and on how well it is linked from the rest of the site. See the internal linking guide.

Beyond one-off checks

Need ongoing website
visibility monitoring?

Explore WebmasterID for continuous, owned, privacy-conscious website visibility.