Sitemap Validator
Validate sitemap XML, URL entries, dates, and sitemap indexes.
Preparing crawl rules? Create robots.txt and preview path rules locally.
Use Sitemap Validator with confidence
Start with the task
Enter the XML sitemap address rather than a human-readable sitemap page. A standard URL sitemap has a urlset root; a sitemap index has a sitemapindex root. The namespace tells a parser which protocol the elements follow. If a scanner reports an HTML document, first check the response URL and content type before changing valid XML.
A practical example
An address ending in /sitemap can be an ordinary navigation page, while /sitemap.xml can contain the machine-readable file. They serve different readers. A sitemap index points to child sitemaps; it is not the same as listing every page directly. Paste a small sample when you need to isolate a malformed element or a duplicate URL.
Review before you use the result
This tool checks structure and selected protocol rules, not every URL’s response or Google’s index. It does not crawl child sitemaps and is not a full XSD validator. Input is limited to 2 MB, so split a larger file for this inspection. In a live sitemap, keep canonical public URLs and real modification dates. A successful validation is not proof of submission or indexing.
Get a useful result from Sitemap Validator.
Check an XML sitemap before adding it to Search Console. Use this sitemap validator as a sitemap tester to verify the file’s format before Google reads it. Paste the document or enter a public sitemap URL, inspect the supported protocol checks and download the report. Start with the duplicate-URL example to see a common issue. This validator does not submit your sitemap, crawl every listed page or confirm Google indexing.
When this tool helps
- Find repeated page URLs before publishing a generated sitemap.
- Separate malformed XML from a missing namespace or an unexpected HTML response.
- Review a URL sitemap or sitemap index without assuming that its pages are indexed.
How to validate an XML sitemap
Choose URL mode for an existing public file, or paste mode for XML you are editing. Use the XML address, often /sitemap.xml, rather than a navigation page such as /sitemap. Run validation and review each reported issue before downloading the result. Correct the source that generates the file so the same mistake does not return on the next build.
Fix the right kind of error
Malformed XML can prevent parsing, while a missing sitemap namespace or duplicate URL is a separate protocol issue. Standard URL sitemaps use a urlset root and sitemap indexes use sitemapindex. The namespace is http://www.sitemaps.org/schemas/sitemap/0.9. If the response contains HTML, first check whether you entered the right address or reached an error page.
Check URL choices as well as syntax
A syntactically valid document can still list the wrong pages. Use your intended public canonical URLs and review redirects, noindex instructions and access restrictions separately. Optional lastmod values should describe real significant changes, not a date refreshed on every build. This tool inspects the supplied document; it does not visit every location or recursively fetch child sitemaps.
Understand this validator’s limits
This inspection is limited to 2 MB and selected protocol checks. It is not a complete XSD validator, a full-site crawl or a Search Console integration. Large production sitemaps can be valid under the sitemap protocol while exceeding this tool’s limit. Use a smaller document or another suitable workflow rather than treating the local inspection limit as a Google limit.
Example input
Two url entries both contain https://example.com/guide in the same urlset.Expected output
Two entries are inspected; the duplicate URL is flagged for review.Load the duplicate URL example, run validation and inspect the report. Remove the repeated entry in your source file, then validate again. The example uses an illustrative domain; pasted XML is sent to our server for analysis.
Questions about this task
How do I validate a sitemap online?
Enter its public HTTP or HTTPS URL, or paste the XML, then select Validate sitemap. Review the returned checks and download the report. Pasted content is sent to the server for analysis.
Why does my sitemap return HTML instead of XML?
You may have entered a human navigation page, a redirect destination or an error page. Check the final address and response content before editing XML that may already be valid.
Does passing validation mean Google indexed my pages?
No. Validation checks the document. Submission, crawl access, canonical selection and indexing are separate. Use Search Console to review Google’s actual processing and URL status.
Can this tool check a sitemap index?
It supports the sitemapindex root and inspects the supplied entries. It does not fetch child sitemaps or validate all their listed pages.
Do all sitemap entries need today’s lastmod date?
No. Use an accurate modification date when available, reflecting a significant change to that page. Do not refresh every entry simply because a build or routine SEO session ran.
How to use Sitemap Validator
Fetch a public XML sitemap or paste XML. Review structural errors, duplicate URLs, namespaces, and optional field values. Download the validation report.
Good to know
Checks XML sitemap protocol rules, not a full XSD or whether each URL is indexed or reachable. Child sitemaps are not crawled. Input is limited to 2 MB; larger sitemaps must be split for this tool.
A few helpful answers
Is this tool free?
Yes. All features on this page are free and require no account.
Where is my data processed?
Submitted public URLs and pasted markup are sent to our server for inspection. The application does not store inputs or results. Remote websites and DNS services receive requests from our server. Open Graph manual edits stay in your browser.
What should I check before using the result?
Checks XML sitemap protocol rules, not a full XSD or whether each URL is indexed or reachable. Child sitemaps are not crawled. Input is limited to 2 MB; larger sitemaps must be split for this tool.
