Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

XML Sitemap Validator

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.

  • 100% free
  • No Signup
  • Sitemap index & .xml.gz
  • Up to 50,000 URLs

Enter a sitemap URL or paste your XML, then click “Validate sitemap”.

Your Privacy Matters

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.

ADVERTISEMENT
Demo Ad 728 x 90

How to validate an XML sitemap

1Add your sitemap

Enter the sitemap URL, or paste the XML code.

2Click “Validate sitemap”

The tool downloads the file and checks it entry by entry.

3Fix the issues

Review errors, warnings and tips, fix your sitemap and check again.

XML SITEMAP VALIDATION GUIDE

Free XML Sitemap Validator – Check Your Sitemap.xml for Errors

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.

XML Syntax Check

Finds broken tags, bad characters and other XML problems, with the line number of the first error.

URL Validation

Checks every <loc> for a full http(s) address, length, spaces, #fragments, encoding, duplicates and host mismatches.

Lastmod, Priority and Changefreq

Validates W3C date formats, flags future dates and checks priority and changefreq values.

Sitemap Index Support

Validates sitemap index files and lists the child sitemaps. Click one to validate it next.

Large and Compressed Files

Handles .xml.gz sitemaps and files with up to 50,000 URLs without slowing down your browser.

Clear Fix Suggestions

Results are grouped into errors, warnings and tips, with examples and entry numbers so you can fix them fast.

How to Validate a Sitemap Online

  1. Choose how to check: Use “From URL” for a live sitemap, or “Paste XML” to check a file before you upload it.
  2. Enter the sitemap address: Common locations are /sitemap.xml and /sitemap_index.xml. You can leave out “https://”.
  3. Click “Validate sitemap”: The tool downloads the file (or reads your pasted XML) and checks it.
  4. Read the verdict: You will see whether the sitemap is valid, valid with warnings or invalid, plus a checklist and statistics.
  5. Open the Issues tab: Every problem has a count and examples with the entry number and, when possible, the line number.
  6. Fix and re-check: Update your sitemap or sitemap plugin, then run the validator again.

What Is an XML Sitemap?

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.

XML Sitemap Format and Rules

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>
  • Encoding: The file must be UTF-8 encoded.
  • Root element: <urlset> for a sitemap, or <sitemapindex> for an index of sitemaps, with the sitemap namespace.
  • <loc> (required): The full URL, including http:// or https://, under 2,048 characters, with special characters escaped.
  • <lastmod> (optional): The last modified date in W3C format, such as 2026-11-01 or 2026-11-01T10:30:00+05:00.
  • <changefreq> (optional): One of always, hourly, daily, weekly, monthly, yearly or never.
  • <priority> (optional): A number from 0.0 to 1.0.
  • Limits: No more than 50,000 URLs and 50 MB uncompressed per sitemap file. Use a sitemap index for larger sites.

Common Sitemap Errors and How to Fix Them

ProblemWhy it mattersHow to fix it
Sitemap is HTML, not XMLSearch engines cannot read it.Check the URL. A redirect, login page or caching rule may be returning a web page.
Not well-formed XMLOne broken tag can make the whole file unreadable.Find the line shown in the report, close tags properly and escape characters like & as &amp;.
Missing or wrong namespaceThe 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 domainA 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 datesSearch engines may ignore the date.Use the W3C format, for example 2026-11-01.
Duplicate URLsWastes space and can confuse tools.List each URL once.
More than 50,000 URLsThe file is over the limit.Split it into several sitemaps and add them to a sitemap index.

What Should You Put in a Sitemap?

  • Include: Canonical, indexable pages that return status 200 and that you want people to find on search engines.
  • Leave out: Pages that redirect, return 404 or 5xx errors, are blocked by robots.txt, have a noindex tag, or are duplicates of another canonical page.
  • Use the preferred version: List the https URL and the www or non-www version that you actually use.
  • Keep it fresh: Add new pages, remove deleted ones and update the lastmod date only when a page really changes.

A clean sitemap helps search engines trust it. You can check the status code of the listed pages with the HTTP status checker.

Do Priority and Changefreq Matter?

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.

Sitemap Index Files

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.

How to Submit a Sitemap to Google and Bing

  1. Make sure the sitemap is valid and reachable at a public URL.
  2. Open Google Search Console, choose your property, go to Sitemaps, enter the sitemap URL and submit it.
  3. Do the same in Bing Webmaster Tools.
  4. Add a line to your robots.txt file so every crawler can find it: Sitemap: https://example.com/sitemap.xml
  5. Check the Sitemaps report in Search Console from time to time for fetch errors and the number of discovered URLs.

Why Does Google Say “Couldn’t Fetch” or “Sitemap Could Not Be Read”?

  • The URL returns an error (404, 403, 500) or redirects to a page that is not XML.
  • A firewall, security plugin or caching rule blocks search engine bots.
  • The XML is malformed, or the file is empty.
  • The sitemap URL is blocked by robots.txt.
  • The sitemap is too large or too slow to download.

Run 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.

Limits of This Sitemap Checker

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.

More Free SEO Tools

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.

ADVERTISEMENT
Demo Ad In-article
COMMON QUESTIONS

Frequently Asked Questions About XML Sitemaps

Answers about sitemap.xml format, limits, errors, submitting to search engines and how this validator works.

How do I validate my sitemap.xml?

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.

Is this XML sitemap validator free?

Yes. It is free to use, needs no signup and no API key.

What is the maximum size of a sitemap?

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.

Where is my sitemap located?

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.

What date format should lastmod use?

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.

Does Google use priority and changefreq?

Google says it ignores both. It may use lastmod if the dates are consistently accurate. The tags are still valid in the protocol.

Why does it say my sitemap is HTML?

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.

Can I validate a sitemap index file?

Yes. The tool validates the index and lists the child sitemaps. Click “Validate” next to one to check it.

Does it support .xml.gz files?

Yes. Compressed sitemaps are unzipped and checked, with a safety limit of 50 MB uncompressed.

Should I include noindex or redirecting pages in my sitemap?

No. Include only canonical, indexable pages that return status 200. Leave out redirects, error pages and noindex pages.

Why are some URLs flagged as a different host?

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.

Does the validator check if each URL works?

No. It checks the sitemap file itself. To check the status of the pages, use an HTTP status checker.

How do I tell Google about my sitemap?

Submit it in Google Search Console under Sitemaps, and add a “Sitemap:” line with the full URL to your robots.txt file.

Is my sitemap saved?

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.

ADVERTISEMENT
Demo Ad 970 x 250

All Tools, One Place

Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.

Explore All Tools →