Sitemap XML Validator

Paste sitemap XML to validate structure, inspect URLs, and find common sitemap issues locally.

Sitemap XML input

Paste a sitemap.xml or sitemap index. This validator never fetches live sitemap URLs.

Processed locally in your browser Limit 50 MB. Your input is processed in your browser and is not uploaded or sent to a server. Avoid pasting production secrets, access tokens, private keys, passwords, or sensitive customer data unless you understand the risk.
0 characters0 bytes0 entries

Validation report

Type detection, URL checks, sitemap index checks, and warnings.

Waiting for inputNo sitemap type detectedlocal XML validation only
Sitemap validation appears here.

Load a sample or paste sitemap XML to inspect urlset and sitemapindex structure, URL fields, duplicates, and common SEO warnings.

Sitemap XML validation guide

Review sitemap structure and field quality before publishing XML to crawlers.

urlset vs sitemapindex

A urlset lists page URLs directly. A sitemapindex lists child sitemap files when a site needs multiple sitemap documents.

loc values

Every entry needs a loc. Use absolute HTTP or HTTPS URLs, avoid fragments, and keep canonical protocol choices consistent.

lastmod format

lastmod should be an ISO 8601 date such as 2026-07-01 or a timestamp with timezone information.

changefreq and priority

changefreq and priority are optional urlset hints. Sitemap index entries should not use either field.

Common sitemap errors

Missing loc values, relative URLs, duplicate URLs, wrong root elements, invalid dates, out-of-range priorities, and missing namespaces are flagged locally.

Validator vs live crawl tools

This tool validates pasted XML and sitemap conventions only. It does not request pages, test response codes, discover redirects, or call SEO APIs.

FAQ

Does this Sitemap XML Validator fetch my sitemap URL?

No. Paste the XML content directly. The validator does not fetch URLs, crawl websites, resolve DNS, or call external APIs.

Can it validate sitemap indexes?

Yes. It detects sitemapindex, checks each sitemap entry, validates loc and lastmod, and warns about nested index patterns.

Does it validate XML schemas or DTDs?

No. For safety, DTD and entity declarations are rejected. The tool checks well-formed XML and common sitemap rules locally.

Are changefreq and priority required?

No. They are optional hints on URL entries. The validator checks them only when they are present.

Why does it warn about mixed HTTP and HTTPS URLs?

A sitemap should usually reflect one canonical protocol. Mixed protocols can signal duplicate canonical URLs or inconsistent site configuration.