Type a tool name, for example "keyword density" or "transcript".
Validate the structure of an XML sitemap. Fetch from a URL or paste sitemap XML directly if your server blocks bot traffic.
A sitemap validator checks that your XML sitemap is built correctly before search engines try to read it. This free tool fetches a file from a URL or accepts pasted XML, then reports the sitemap type, URL count, file size, any issues and ten sample URLs. It suits developers, SEOs and site owners.
An XML sitemap is a file that lists the URLs you want search engines to discover, written in the format defined at sitemaps.org. Validating it means checking that the file follows that format: well-formed XML, the correct root element and a proper entry for every URL.
There are two kinds of file. A standard sitemap uses a urlset root and holds page entries, each with a required loc value and optional fields such as lastmod. A sitemap index uses a sitemapindex root and points to several child sitemaps. Under the protocol, one file can list up to 50,000 URLs and must stay within 50 MB uncompressed, which is why large sites split their URLs across files and tie them together with an index.
Search engines forgive some mistakes and punish others. A single unescaped ampersand can make the whole file unreadable. Validating first catches this kind of problem before Google Search Console reports that it could not read your sitemap.
You can validate a sitemap in under a minute, either from a live address or from text you paste in. Follow these steps:
The fastest way to learn the results is to test a small file. Suppose you paste a sitemap with a urlset root and three entries: the home page, a /blog/ page and a /pricing/ page.
The tool returns Valid sitemap, a type that shows it is a standard URL set, a URL count of 3 and a size well under 1 KB. The Sample URLs table lists all three addresses. Nothing is wrong, so there is no issues list.
Now change the blog entry to https://example.com/blog/?page=2&sort=new without escaping the ampersand. XML treats a bare ampersand as the start of an entity, so the file is no longer well-formed. The verdict flips to Invalid sitemap, and the issues list describes the problem. You fix it by writing & in place of the ampersand and validating again.
Here is a size example. A store exports 120,000 product URLs into one file. The URL count shows 120,000, more than double the 50,000 limit. The fix is to split the list into three sitemaps and publish a sitemap index that references them. Validate the index and each child file separately.
Each output answers one question about your file. Use this table as a quick reference, then work through the details below.
| Result | What it tells you | Good sign |
|---|---|---|
| Verdict | Valid or invalid structure | Valid sitemap |
| Type | Standard sitemap or sitemap index | Matches your intent |
| URL count | Entries found in the file | At most 50,000 |
| Size | File size | Under 50 MB uncompressed |
| Issues found | Problems with entries | No list at all |
| Sample URLs | First 10 entries | Correct host and protocol |
An invalid verdict means the file breaks the sitemap format in at least one place. Work through the issues from the top, because an early syntax error can cause later messages. The tool shows only the first 20 issues, although it checks every entry. If you fix a batch and more appear on the next run, that is expected.
Type should match what you meant to publish. If you expected an index but see a standard sitemap, you probably submitted a child file. A URL count of 0 on a file you know has pages usually means the entries are wrapped incorrectly or the namespace is wrong.
Scan the first ten entries by eye. Look for a staging domain, http links on an https site, a www versus non-www mismatch, and tracking parameters. These are common after a migration or a theme change, and a validator that only checks structure will not call them wrong. You must.
When you fetch from a URL, the tool checks entries against the host and directory of the address you submitted. A sitemap stored at /blog/sitemap.xml should list only URLs under /blog/, and a sitemap on one host should not list another. Pasted XML has no address to compare against, so scope is not verified in that mode.
Anyone who publishes or maintains a sitemap benefits from checking it at key moments. These are the situations where it earns its keep:
Most sitemap failures come from a short list of repeat mistakes, and each has a simple fix.
Replace &, <, >, apostrophes and quotation marks inside URLs with their XML entities. The ampersand is the usual culprit in URLs with query strings.
Every loc value should be a full address with protocol and host, such as https://example.com/page/. Relative paths like /page/ are not valid in a sitemap.
The lastmod value should use W3C date format, for example 2025-03-14 or a full date and time with a time zone. Formats like 03/14/2025 are a frequent error.
Include canonical, indexable pages that return a normal response. Redirected, blocked or noindex pages send mixed signals, and this validator does not check for them, so review them separately.
After the file validates, reference it in your robots.txt file with a Sitemap line and submit it in Search Console.
This tool checks sitemap structure, and it says so on the results page: URL reachability, indexing and search acceptance are not checked. A file can be valid and still list pages that return errors or that Google chooses not to index.
The results are also condensed by design. You see the first 20 issues and the first 10 sample URLs, even though every entry is examined. Scope checks apply only in URL mode. For indexing status and crawl errors, use Google Search Console alongside this validator.
Run your sitemap through the validator on this page, fix whatever the issue list shows, and re-check until you get a clean Valid sitemap result. For more utilities of this kind, browse the web developer tools collection.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato MarketChecks XML syntax, sitemap namespace, locations, host scope and entry limits. Paste mode cannot verify scope against a hosting URL. Child sitemaps are not recursively validated. A valid result does not guarantee indexing.
Implementation reviewed: 4 October 2026. Source documentation