XML Syntax Check
Finds broken tags, bad characters and other XML problems, with the line number of the first error.
Check your sitemap.xml for errors. Enter a sitemap URL or paste the XML to validate the format, URLs, dates, limits and sitemap index files against the sitemap protocol. Free, no signup and no API key.
Enter a sitemap URL or paste your XML, then click “Validate sitemap”.
The sitemap URL or XML is sent to our server only to run the check. The tool does not save your sitemap or the results.
Enter the sitemap URL, or paste the XML code.
The tool downloads the file and checks it entry by entry.
Review errors, warnings and tips, fix your sitemap and check again.
An XML sitemap tells search engines which pages of your website you want them to find and crawl. If the file has errors, such as broken XML, wrong dates, duplicate URLs or addresses on the wrong domain, search engines may ignore parts of it or reject it completely. This free XML sitemap validator checks your sitemap against the sitemap protocol and shows exactly what is wrong. Enter a sitemap URL or paste your XML, and the tool checks that the file is well-formed XML, that the root element and namespace are correct, that every entry has a valid <loc> URL, that <lastmod> dates use the right format, that <changefreq> and <priority> values are valid, that there are no duplicates, and that the file stays within the 50,000 URL limit. It also supports sitemap index files, compressed .xml.gz sitemaps and checks whether the sitemap is listed in robots.txt. It is a handy sitemap checker for SEO specialists, developers, bloggers and website owners, with no signup and no API key.
Finds broken tags, bad characters and other XML problems, with the line number of the first error.
Checks every <loc> for a full http(s) address, length, spaces, #fragments, encoding, duplicates and host mismatches.
Validates W3C date formats, flags future dates and checks priority and changefreq values.
Validates sitemap index files and lists the child sitemaps. Click one to validate it next.
Handles .xml.gz sitemaps and files with up to 50,000 URLs without slowing down your browser.
Results are grouped into errors, warnings and tips, with examples and entry numbers so you can fix them fast.
An XML sitemap is a file, usually called sitemap.xml, that lists the important URLs of a website, and can include extra information such as when each page was last modified. Search engines such as Google and Bing use it to discover pages faster, especially on new sites, large sites, sites with few internal links, and sites with lots of new or updated content. A sitemap does not guarantee that pages will be indexed or ranked, but it helps search engines find and understand your pages.
A standard URL sitemap uses the following structure.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/page</loc>
<lastmod>2026-11-01</lastmod>
</url>
</urlset>
| Problem | Why it matters | How to fix it |
|---|---|---|
| Sitemap is HTML, not XML | Search engines cannot read it. | Check the URL. A redirect, login page or caching rule may be returning a web page. |
| Not well-formed XML | One broken tag can make the whole file unreadable. | Find the line shown in the report, close tags properly and escape characters like & as &. |
| Missing or wrong namespace | The file is not recognised as a sitemap. | Add xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" to the root element. |
| Relative URLs | <loc> must be a full address. | Use https://example.com/page instead of /page. |
| URLs on a different domain | A sitemap should list URLs of its own site. | Move those URLs to the right sitemap, or submit the sitemap in a property that covers them. |
| Invalid lastmod dates | Search engines may ignore the date. | Use the W3C format, for example 2026-11-01. |
| Duplicate URLs | Wastes space and can confuse tools. | List each URL once. |
| More than 50,000 URLs | The file is over the limit. | Split it into several sitemaps and add them to a sitemap index. |
A clean sitemap helps search engines trust it. You can check the status code of the listed pages with the HTTP status checker.
Google has stated that it ignores the <priority> and <changefreq> values, and that it uses <lastmod> only when the dates are consistently accurate. This does not make the tags invalid, and other search engines or tools may still read them, but you do not need to spend time tuning them. Focus on a correct list of URLs and honest lastmod dates. This validator still checks the values so the file stays valid, and marks them as a tip.
A sitemap index is a sitemap that lists other sitemaps. Large sites and many CMS plugins create one, for example sitemap_index.xml pointing to separate sitemaps for posts, pages and products. A sitemap index can list up to 50,000 sitemaps and cannot contain another sitemap index. When you validate an index, this tool shows the child sitemaps and lets you validate each one with a single click, so you can check a whole site step by step.
Sitemap: https://example.com/sitemap.xmlRun the sitemap through this validator first. If the tool reads it correctly but Google still cannot, the problem is usually bot blocking, a temporary server error or a robots.txt rule.
This tool validates the sitemap file against the sitemap protocol. It does not request every URL inside it, check if pages are indexable or canonical, or tell you whether Google has indexed them. Files up to 25 MB can be downloaded from a URL, and pasted XML is limited to about 5 MB. For text sitemaps and RSS or Atom feeds, which Google also accepts, this tool only detects the type. Use Google Search Console for the final word on how Google reads your sitemap.
Find new topics with the long tail keyword generator. Check keyword use with the keyword counter. Browse all free online tools for SEO, text, PDF and image work.
Answers about sitemap.xml format, limits, errors, submitting to search engines and how this validator works.
Enter your sitemap URL (for example https://example.com/sitemap.xml) or paste the XML, then click “Validate sitemap”. The tool shows errors, warnings and tips.
Yes. It is free to use, needs no signup and no API key.
A single sitemap can contain up to 50,000 URLs and be up to 50 MB uncompressed. If you have more, split it into several sitemaps and list them in a sitemap index.
The most common locations are /sitemap.xml and /sitemap_index.xml. Many CMS and SEO plugins create these automatically. Your robots.txt file may also list the sitemap URL.
Use the W3C datetime format, such as 2026-11-01 or 2026-11-01T10:30:00+05:00. The date only is fine for most sites.
Google says it ignores both. It may use lastmod if the dates are consistently accurate. The tags are still valid in the protocol.
The URL returned a web page instead of XML. It may be redirecting to your home page or a login page, or a cache or security rule may be changing the response.
Yes. The tool validates the index and lists the child sitemaps. Click “Validate” next to one to check it.
Yes. Compressed sitemaps are unzipped and checked, with a safety limit of 50 MB uncompressed.
No. Include only canonical, indexable pages that return status 200. Leave out redirects, error pages and noindex pages.
A sitemap should list URLs from the same site where it is hosted. A different subdomain, a www and non-www mix, or another domain is flagged as a warning.
No. It checks the sitemap file itself. To check the status of the pages, use an HTTP status checker.
Submit it in Google Search Console under Sitemaps, and add a “Sitemap:” line with the full URL to your robots.txt file.
No. The URL or XML is sent to our server only to run the check, and the tool does not save it or the results.
Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.
Explore All Tools →