Skip to content

Sitemap Validator

Validate an XML sitemap or sitemap index against the sitemaps.org protocol. The validator downloads the sitemap, gzip-compressed ones included, or reads pasted XML, checks that it is well-formed, uses the right namespace and stays within 50,000 URLs and 50 MB, and checks every entry: absolute URLs on the same host, lastmod dates in W3C format, valid changefreq and priority values and duplicates.

Reset

Frequently asked questions

What does the validator check?

That the file is well-formed XML with a urlset or sitemapindex root in the sitemaps.org namespace, that it lists at most 50,000 entries, and for every entry that loc is present, absolute, at most 2,048 characters and on the same host as the sitemap, that lastmod uses the W3C date format and is not in the future, that changefreq and priority have allowed values and that no URL appears twice.

Can I check a sitemap index?

Yes. A sitemap index is validated the same way, and its child sitemaps are listed so you can check each of them in turn. The validator fetches one file per request.

Are gzip-compressed sitemaps supported?

Yes. A sitemap.xml.gz file is decompressed before it is checked, up to 20 MB of XML. The download itself may be up to 10 MB.

Which date formats are allowed for lastmod?

The W3C Datetime profile of ISO 8601: a year, year and month, a full date such as 2026-11-18, or a date and time with a time zone such as 2026-11-18T09:30:00+01:00 or ending in Z. A time without a time zone is not allowed.

Do search engines use changefreq and priority?

Google ignores both and other search engines rely mainly on lastmod, but they must still have valid values: changefreq one of always, hourly, daily, weekly, monthly, yearly and never, and priority a number from 0.0 to 1.0. An accurate lastmod is much more useful.

Why are URLs on other hosts reported?

A sitemap may only list URLs on the host it is served from, unless the other host confirms the sitemap in its own robots.txt. URLs on another host or protocol are usually a copy and paste mistake or a staging address.

Can I validate XML that is not online yet?

Yes. Paste the XML instead of a URL. Pasted text can be up to 5 MB.

Are image, video and news extensions supported?

They are allowed and listed by their namespace prefixes, and the URLs in loc are checked as usual. The extension tags themselves are not validated in detail.

Why is DOCTYPE refused?

Sitemaps never need a DOCTYPE or entity declarations, and entity expansion can be abused to make a parser use huge amounts of memory. The validator therefore refuses files that contain them.

Is there a rate limit?

Fetching a sitemap counts as one request, and each visitor can run a limited number of checks per minute.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.