- Category
- Technical SEO
- Level
- Beginner
- Also called
- Sitemap
- Limit per file
- 50,000 URLs or 50 MB uncompressed
- Submit in
- Search Console and Bing Webmaster Tools
- Check it free
- Sitemap Generator
What is an XML sitemap?
An XML sitemap is a machine-readable list of your important URLs. Search engines use it as a discovery hint: it doesn't guarantee indexing, but it helps them find pages they might otherwise miss. Large sites split their URLs across several sitemaps listed in a sitemap index.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://example.com/</loc><lastmod>2026-03-01</lastmod></url>
</urlset>
Best practices
- List only canonical, indexable pages that return 200.
- Keep
lastmodaccurate; Google uses it only when it's consistently reliable. - Point to the sitemap from robots.txt and submit it in Search Console and Bing Webmaster Tools.
- Update it automatically when pages are added or removed.
Common mistakes
- Including redirected, noindex or broken URLs.
- Setting every page's
lastmodto today. - Relying on
priorityandchangefreq, which Google ignores.