Free Tool

XML Sitemap Validator

Paste your sitemap.xml and get an instant check of its structure, URL count, lastmod dates, and common errors.

In URL mode we fetch the sitemap on our servers; paste mode runs entirely in your browser. Try the Broken Link Checker next.

Why a sitemap needs its own validation step

An XML sitemap is a machine-readable index telling search engines every URL you'd like considered for crawling and indexing. Because it's meant to be read by machines, not rendered visually, structural errors are easy to introduce and easy to miss — a malformed tag, a relative URL where an absolute one is required, or a duplicate entry won't show any visible symptom until Google Search Console quietly reports it weeks later.

Validating the file directly, the way this tool does, catches those issues immediately instead of waiting for a delayed signal from Search Console.

The most common sitemap errors this checks for

What belongs in a sitemap (and what doesn't)

A sitemap should list pages you actually want indexed and ranked — not every URL your site technically generates. Leave out admin pages, thank-you or checkout confirmation pages, duplicate parameterized URLs, and anything marked noindex. Including a noindexed page in your sitemap sends a contradictory signal to search engines and is one of the more common, avoidable mistakes.

Frequently asked questions

What should a valid XML sitemap contain?

A valid sitemap needs a root <urlset> element with the correct namespace, and each <url> entry needs at least a <loc> tag with a full, absolute URL. <lastmod>, <changefreq>, and <priority> are optional additions that provide extra context to crawlers.

Is there a limit to how many URLs a single sitemap can contain?

Yes — the sitemap protocol caps a single sitemap file at 50,000 URLs and 50MB uncompressed. Sites with more URLs than that use a sitemap index file that references multiple individual sitemap files.

Does my sitemap need to include every single page on my site?

No, and it often shouldn't. Include pages you actually want indexed and ranked; leave out admin pages, thank-you pages, duplicate parameter URLs, and anything marked noindex, since including a noindexed URL in your sitemap sends a contradictory signal.

What format should lastmod dates use?

The W3C datetime format, such as 2026-07-20 or the fuller 2026-07-20T15:30:00+00:00. Dates in other formats may be ignored or misread by search engines.

Start building your content library in under 8 minutes.

Your competitors are publishing every week. Every week you don't is a week of organic traffic going to them.

No Credit Card Required.