SEO Toolkit

Sitemap Validator

All tools

Catch a broken namespace or a relative URL in your sitemap before a search console does.

How it works

Four simple steps

1

Paste the sitemap

Paste sitemap.xml or a sitemap index, or drop the file in.

2

Structure is checked

Declaration, root element and sitemaps.org namespace are verified.

3

URLs are tested

Every loc must be an absolute http or https address.

4

Fix and copy the report

Correct failures, paste again, then copy the summary.

Sitemap Validator

About Sitemap Validator

A build script now writes your sitemap, and after the last deploy Search Console reported it could not read the file. Paste the generated XML here to check the basics quickly: the right root element, the correct namespace and loc values that are full http or https URLs.

The validator recognizes both a standard urlset sitemap and a sitemapindex file. It checks for an XML declaration, the root element, the sitemaps.org 0.9 namespace, and that at least one loc entry exists. Every loc value is tested as an absolute http or https URL, and the first few failures are listed so you can find them. For URL sitemaps it also reports how many entries carry lastmod, changefreq and priority, and it fails a file with more than 50,000 URLs (with a warning from 40,000). The report lists the type, counts and the first 15 URLs.

These are pattern checks rather than a full XML parse, so a file with a missing closing tag or an unescaped ampersand can still pass here. Opening the file directly in a browser tab is a quick way to surface parse errors, and the XML Formatter makes a long file easier to read. Warnings for missing changefreq and priority are low priority, since Google has said it ignores both, while an accurate lastmod is worth keeping.

To build a sitemap from a list of URLs, use the Sitemap Generator, and make sure your robots.txt rules point to it. Validation runs on the text you paste, in your browser.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

No. Paste the XML or drop the file onto the input. Fetching another site from the browser is usually blocked by cross-origin rules, so the tool works only with content you provide.

No. It confirms each loc is a well-formed http or https URL but does not request the pages, so 404s and redirects will not show up here.

They are optional fields. Google has stated it ignores them, so the warnings can be left alone. Keeping lastmod accurate is more useful.

View more FAQs

Related tools

View all

Keyword Density

Analyze keyword usage.

Open

SERP Preview

Preview search engine results.

Open

Meta Tag Analyzer

Analyze existing meta tags.

Open

Robots.txt Checker

Check robots.txt rules.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools