Free tool

Sitemap validator

XML Sitemap Validator

Free, no sign-up. We only fetch the public URL you enter.

Short answer

Enter the address of your sitemap above – for example https://www.example.com/sitemap.xml – and the validator loads it, checks that it is valid XML, tells you whether it is a sitemap index or a URL set and counts the entries, with a sample of the URLs. Common problems are a sitemap that cannot be loaded, invalid XML, URLs of another domain and entries that redirect or return errors – all of which send mixed signals to Google.

  • Free, no sign-up: reachability, valid XML, type and number of entries.
  • Tip: the Sitemap line in your robots.txt shows where the sitemap lives.
  • Daily sitemap monitoring with history: monitordefend.
Sitemap validation · example result
https://www.myshop.com/sitemap_index.xml
✓ Loaded (HTTP 200)
✓ Valid XML
  Type: sitemap index · 4 entries
  …/product-sitemap.xml, …/post-sitemap.xml, …/page-sitemap.xml
Loaded, valid, a sitemap index with four sub-sitemaps – check each of them the same way.

With this free sitemap validator you check your XML sitemap for validity and whether the contained URLs are actually reachable. Your sitemap is the map you offer search engines — if it contains errors or dead addresses, you lead crawlers astray instead of steering them to your important pages. This validator uncovers such problems.

What a sitemap is for

An XML sitemap is a structured list of the URLs you recommend to search engines for crawling and indexing. It does not replace internal linking but complements it: it ensures search engines know of the existence of your important pages, even if these are not prominently linked, and helps especially with large or deeply nested sites.

The sitemap is thus, in effect, your recommendation of what the crawl budget should be spent on. Precisely for this reason it must be maintained: a current, error-free sitemap reliably steers crawlers; an outdated or faulty one confuses them and undermines its own purpose.

What the validator checks

The validator checks two things. First the formal validity: is the XML structure correct, are the required elements present, does the file adhere to the sitemap format? A single syntax error can lead to a search engine being unable to process the whole sitemap or part of it.

  1. Load The sitemap URL you enter
  2. Parse Is it valid XML?
  3. Classify Sitemap index or URL set
  4. Count Entries, with a sample
What the validator does in a few seconds.

Second the content: the validator tells you whether the file is a sitemap index or a URL set, counts the entries and shows a sample of the listed addresses. A formally valid sitemap is of little use if those addresses lead into the void, so glance at the sample for wrong hosts, http instead of https or staging URLs, and run a few of them through the redirect checker to see whether they answer with a healthy status code.

How to read the result

The result first shows you whether the sitemap is formally valid and names any structural errors with their location. You should fix these first, because they can jeopardise the processing of the entire file. Only a valid structure allows search engines to read the entries at all.

After that you see which of the listed URLs are not cleanly reachable — those that respond with a 404, redirect to another address or do not load at all. Each of these entries is a signal that leads search engines astray and makes your sitemap less credible.

Common sitemap errors

The most common problems arise from a lack of maintenance. A sitemap not updated after a move lists old addresses that have long redirected or are missing. Dynamically generated sitemaps sometimes include pages not meant to be indexed, or leave out new ones.

Common sitemap errors
Sitemap not found
No Sitemap line in robots.txt, wrong path
Invalid XML
Unescaped & or broken encoding
Staging or http URLs
Wrong host or protocol in the list
Redirects and 404s listed
Contradictory signals
The errors the validator finds most often.

Avoiding contradictory signals

An especially treacherous error are contradictory signals. A sitemap tells search engines "this page is important, crawl it" — but if the same page is set to noindex or blocked by robots.txt, the search engine receives two contradictory instructions. This undermines trust in your sitemap as a whole.

The rule is simple: only pages that are actually meant to be indexed and are reachable belong in the sitemap. Anything set to noindex, redirected or blocked has no place there. A consistent sitemap sends a clear signal instead of a confusing one.

Sitemap, crawling and indexing

The sitemap is a building block in the interplay of crawling and indexing. It helps search engines find your pages (crawl), which is the prerequisite for them to be admitted (index) and finally rank. A clean sitemap thus supports the entire chain that decides the visibility of your site.

Sitemap → Google
URLs in the sitemap 1,284
Crawled 1,190
Indexed 1,102
The sitemap is the starting point – Google decides what gets indexed.

Especially with large sites with many URLs this is valuable, because crawl budget is limited. A maintained sitemap steers the attention of crawlers to your important pages, instead of losing it in remote or duplicate addresses — a direct contribution to efficient crawling.

Keeping the sitemap current

A sitemap is not a one-off artefact but must grow with your site. Every new important page should be added, every removed page should vanish. With most modern systems the sitemap is generated automatically — which is convenient but also means an error in the generation silently affects many URLs.

This is why it is not enough to set up the sitemap once. It should be checked regularly, especially after moves, relaunches and larger content changes, so it reflects the current picture of your site and not an outdated state.

Check after every rebuild

The riskiest moments for a sitemap are the same as for broken links: moves, relaunches and structural changes. If the URL scheme changes, an automatically generated sitemap can be full of old addresses overnight or leave out the new ones — and search engines then follow an outdated map.

A check immediately after such a rebuild catches this while the error can still be easily attributed. This way you ensure the new structure has also arrived in the sitemap and crawlers find the current pages instead of following the old ones.

Sitemap index for large sites

A single sitemap file has an upper limit of URLs it may contain. Large websites with many thousands of pages hit this limit and therefore split their sitemap into several files, bundled by a superordinate sitemap index file. This index file then points to the individual partial sitemaps.

This structure is not only a technical necessity but also an opportunity for order. The partial sitemaps can be grouped by content types — products, categories and posts separately, for instance — which makes finding problems easier: if a certain group falls out of the index, it is quickly clear which area is affected.

For validation this means both the index file and the individual partial sitemaps must be correct. An error in the index file can lead to search engines finding none of the partial sitemaps, even though these are flawless.

The larger a site, the more important this structure becomes — and the more valuable a check that keeps both the index and the individual files in view, instead of looking only at a single sitemap.

lastmod and the limits of hints

A sitemap can contain, besides the mere addresses, additional hints, such as when a page was last changed. This lastmod date helps search engines judge which pages have changed and should be crawled again — but only if it is honestly maintained.

This is exactly where a common trap lies: if a system automatically sets the current date on all pages with every sitemap generation, the hint loses its value. Search engines quickly learn to distrust a lastmod that claims the whole site changed overnight, and then ignore it entirely.

The lesson is to set such hints only when they correspond to the truth. A correctly maintained change date is useful; a blanket-set one is at best ineffective and at worst undermines trust in the entire sitemap.

Less is often more here: a lean, correct sitemap with reachable URLs and honest details is of more use than one overloaded with hints search engines do not trust anyway.

When validating, it is therefore worth attending not only to formal validity but also to whether the contained details are plausible and consistent.

Monitor the sitemap with monitordefend

The free validator checks your sitemap right now. monitordefend reads it every day: it finds the sitemap via robots.txt or the usual locations, resolves sitemap indexes, counts the URLs and keeps the history, so a sudden drop after a plugin update is obvious. New URLs are listed, optionally by email.

URLs in the sitemap (monitoring)1,284
1: 1,240 1 2: 1,248 3: 1,251 3 4: 1,260 5: 1,265 5 6: 610 7: 1,270 7 8: 1,276 9: 1,280 9 10: 1,284
Daily monitoring makes a sudden drop visible – here a broken sitemap index on day 6.

The URL list also feeds two other checkers: the broken-link crawl starts from it, and with Google Search Console connected the indexing checker shows how many of your sitemap URLs Google has actually indexed.

Frequently asked questions

What belongs in an XML sitemap?

Only pages that are actually meant to be indexed and are reachable. Pages set to noindex, redirected or robots.txt-blocked addresses do not belong in it, because they send contradictory signals.

Why does my sitemap not validate?

Usually because of a formal XML or structural error that jeopardises processing. The validator names the location, so you can fix it. Only a valid structure allows search engines to read the entries.

Does a sitemap improve my ranking directly?

Not directly. It helps search engines find and index your pages — the prerequisite for them to rank at all. Especially with large sites it steers the crawl budget to what matters.

How often should I check my sitemap?

Regularly and especially after moves, relaunches and larger content changes. Automatically generated sitemaps can silently affect many URLs on a generation error, so ongoing monitoring is worthwhile.

Do I need several sitemaps for a large site?

Yes. A single sitemap has an upper limit of URLs; large sites therefore split their addresses across several files, bundled by a superordinate sitemap index file. Then both the index and the individual partial sitemaps must be valid and reachable.

Should the sitemap match my robots.txt and noindex tags?

Yes. Only pages meant to be indexed and reachable belong in the sitemap. A page that the sitemap recommends but robots.txt blocks or a noindex tag excludes sends contradictory signals and undermines trust in the whole sitemap.

Monitor crawling & indexing

Start for free and set up your first check in minutes.

Start for free