Sitemap Errors: Complete Fix Guide

Every sitemap error wastes crawl budget, reduces indexing efficiency, or sends confusing signals to search engines. Browse all common errors below — each includes a full explanation, real examples, and exact fix instructions. Use the free sitemap checker to scan your sitemap for all of these errors automatically.

Why Sitemap Errors Hurt Your SEO

Your XML sitemap is the primary signal you send Google about which pages on your site exist and which ones matter. A sitemap with errors is worse than a carefully curated sitemap with fewer URLs — it tells Google your site housekeeping is poor, trains Googlebot to trust your sitemap less, and wastes crawl budget on pages that redirect, return errors, or contradict their own canonical declarations.

The most damaging errors are: invalid XML (entire sitemap gets rejected), URLs returning 4xx/5xx (direct crawl budget waste), noindex pages in the sitemap (contradictory signals Google handles unpredictably), and non-canonical URLs (Google indexes the canonical instead but still crawls the wrong URL). Less damaging but worth fixing: incorrect priority, changefreq misuse, and missing lastmod dates — these reduce the value of your sitemap as a crawl signal without breaking it outright.

How to Diagnose Sitemap Errors

Start with Google Search Console: Indexing → Sitemaps shows your submitted sitemaps with a status (“Success” or error) and URL counts. Click on a sitemap to see the last fetch date and any parsing errors. Then cross-reference with the Pages report — a sitemap that “succeeds” but has low indexed/submitted ratio has quality or signal errors, not format errors. Use a sitemap checker tool to crawl every URL in your sitemap and report status codes, redirect chains, canonical mismatches, and noindex conflicts in one pass.

Duplicate URLs
Exact repeats and near-duplicates (slash, case, www, parameters). Keep one version per page.
Read guide
Invalid URL / URL not allowed
Relative or malformed URLs, or URLs on another host or above the sitemap folder.
Read guide
Orphan Pages
Pages no other page links to. Why they are hard to find, and how to spot them by comparing your sitemap with a crawl.
Read guide
priority and changefreq
Google and Bing ignore both tags. Which values are still invalid, and what to set instead.
Read guide
4xx / 5xx URLs
Dead or broken pages in your sitemap returning HTTP errors to Googlebot.
Read guide
Blocked by robots.txt
Sitemap URLs that robots.txt disallows - contradictory signals to Google.
Read guide
Non-canonical pages in sitemap
Sitemap URLs whose canonical tag points elsewhere. Fix the sitemap or the canonical.
Read guide
URLs with noindex
Pages in your sitemap that also carry a noindex tag - wasted crawl budget.
Read guide
HTTP URLs in an HTTPS sitemap
Old http:// or wrong-host URLs left after a move. List only your final https URLs.
Read guide
Missing lastmod
Pages without lastmod tags - Google has no signal for freshness or re-crawl priority.
Read guide
Parsing errors
Parsing error, missing XML tag, incorrect namespace, leading whitespace and the other XML errors Search Console reports.
Read guide
Too many URLs / sitemap too large
Over 50,000 URLs or 50 MB uncompressed. Search Console shows an error; split the file with a sitemap index.
Read guide
Encoding and special characters
The sitemap must be UTF-8, escape & as &, and percent-encode non-ASCII URLs.
Read guide
Trailing Slash Inconsistency
A mix of /page and /page/ URLs. What Google says about it, and how to make links, sitemap and redirects agree.
Read guide
Compression error (.xml.gz)
Google could not uncompress your gzipped sitemap. How to test the file and fix it.
Read guide
Check your sitemap for all these errors
Free analysis - results in 60 seconds
Analyze My Sitemap