XML Sitemap Generator & Validator · Tutorial
How to find and fix errors in a sitemap.xml
6 min readbeginnerUpdated
Search console reports problems with your sitemap, but not clearly. You will check the file, work through each error and warning, and end with a clean sitemap.
What you need
- The Sitemap Generator & Validator (Validate tab)
- Your sitemap.xml
Steps
Paste the sitemap
Open your sitemap in a browser, copy the XML and paste it, or load the example with several common mistakes.
Make URLs absolute
/about/is reported as a path. Change it tohttps://example.com/about/.Fix the date and the hints
30/10/2026must become2026-10-30.sometimesisn’t an allowed change frequency, and a priority of2is outside 0.0–1.0.<lastmod>2026-10-30</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority>Clean up warnings
Remove the second home page entry, and decide whether
www.example.comorexample.comis your site; list only that host.Validate again
When the message says no problems were found, upload the file and resubmit it in search console.
Try it yourself
Opens the XML Sitemap Generator & Validator with this tutorial's sample loaded.
Common mistakes
- Fixing the file but not the generator
- If a plugin or build script made the mistakes, fix it too, or the next build brings them back.
- Using local date formats
- Sitemaps always use year-month-day, whatever your site’s language.
Next steps
Go back to the XML Sitemap Generator & Validator, or keep going with one of these: