Sitemap Validator
Paste a sitemap.xml or sitemap index to check the XML, every loc URL, lastmod dates, duplicates and mixed hosts.
Paste a sitemap and press Validate.
| Level | Entry | Finding |
|---|
How to validate a sitemap
- Open your sitemap in a browser, usually at
/sitemap.xmlor/sitemap_index.xml, view the page source and copy everything. - Paste it into the box and press Validate sitemap. Both URL sets and sitemap index files are supported.
- Read the summary, which states the file type, the number of entries and the count of errors and warnings.
- Work through the table. Each finding names the entry number and URL, so you can find the line quickly in your sitemap or SEO plugin settings.
Press Load a sample to see a short sitemap with typical mistakes.
Worked example
The sample is a five-entry URL set for a small business site. Validating it gives "URL set with 5 entries: 3 errors, 2 warnings." Entry 3 is a warning, because it repeats the services page already listed as entry 2. Entry 4 has two errors: its <loc> is the relative path /contact/ rather than a full address starting with https://, and its lastmod date is written as 30/11/2026, a UK style that sitemaps do not accept. It should be 2026-11-30. Entry 5 has a priority of 1.5, but priorities must be between 0.0 and 1.0. Finally, a file-level warning points out that the URLs mix two origins, https://example.co.uk and http://www.example.co.uk, when a sitemap should list one consistent version of the site.
How it works
The tool parses your paste with the browser's own XML parser, so it catches the same well-formedness errors a search engine would, such as an unescaped ampersand or a missing closing tag. It confirms the root element is urlset or sitemapindex with the standard sitemaps.org namespace. Then it checks every entry. Each loc must be an absolute, valid URL without spaces and under 2,048 characters. lastmod must use the W3C date format and should not be in the future. changefreq and priority must use allowed values. It also flags duplicates, mixed hosts, more than 50,000 entries and files larger than 50 MB.
Why sitemap errors matter
A sitemap tells search engines which pages you want crawled. If the XML is broken, the whole file may be ignored. Wrong dates make your lastmod values less trustworthy, and mixed http and https or www and non-www addresses send mixed signals about which version of each page is the real one.
Tips
- List only canonical, indexable pages that return a 200 status. Leave out redirects, noindex pages and duplicates.
- Update lastmod only when page content really changes. Bumping every date daily teaches search engines to ignore it.
- Escape ampersands in URLs as
&. - Submit the sitemap in Google Search Console and reference it in robots.txt with a line such as
Sitemap: https://example.co.uk/sitemap.xml. - Compress very large sitemaps with gzip. Search engines read .xml.gz files without any extra setup.
Frequently asked questions
Why can't it fetch my sitemap from a URL?
Browsers block pages from reading other websites' files directly, so fetching needs a server. Pasting avoids that and keeps your data private.
Does Google use changefreq and priority?
Google has said it ignores them, but invalid values are still errors.
What is a sitemap index?
Large sites split their URLs across several sitemaps and list those files in an index. Paste the index to check its structure, then paste each child sitemap separately to check the URLs inside.
How many URLs can one sitemap hold?
Up to 50,000 URLs and 50 MB uncompressed. Beyond either limit, split the file and use a sitemap index.
My SEO plugin makes the sitemap. Can it still be wrong?
Yes. Plugins can include tag archives, attachment pages or URLs on the wrong domain after a migration. A quick check after any major change is worthwhile.
Is my sitemap uploaded?
No. It is checked in your browser and nothing is stored.