XML Sitemap — Definition & Meaning
What is XML Sitemap?
An XML sitemap is a machine-readable list of the URLs on your site that you want search engines to crawl and index. Submitted via Google Search Console (or discovered through robots.txt), it accelerates discovery of new pages and communicates freshness with per-URL lastmod dates.
Key points
- Format: XML file with one <url> block per page, each containing <loc>, optional <lastmod>, <changefreq>, and <priority>.
- Size limits: 50MB uncompressed or 50,000 URLs per file. Above that, split into multiple sitemaps and use a sitemap index.
- Include only canonical, indexable, 200-OK URLs. Never list redirects, noindexed pages, or 404s — they signal a sloppy site.
- lastmod must be a real timestamp — flat "today's date on every URL" trains Google to ignore your freshness signal entirely.
- Submit via GSC → Sitemaps and list in robots.txt: `Sitemap: https://yoursite.com/sitemap.xml`.
Example
A news site that pushes a fresh sitemap every hour with accurate lastmod dates gets new articles indexed in minutes. The same site with a static, monthly sitemap waits days for the same result.
Frequently asked questions
Do I need an XML sitemap if my site is small?
Under 200 pages Google will crawl fine without one — but a sitemap still accelerates discovery of new content and provides GSC coverage reporting. Always include one.
What is a sitemap index?
A sitemap of sitemaps — used when you have multiple section-specific sitemaps (e.g. /sitemap-blog.xml + /sitemap-products.xml). The index points to all of them from one entry point.
Can I have multiple sitemaps?
Yes — most large sites split by content type (blog, products, help, glossary) so each has its own lastmod cadence and coverage reporting in GSC.