Complete Guide to XML Sitemaps for Technical SEO
How to generate, structure, and submit compliant XML sitemaps to optimize crawl efficiency and indexation.
1. Anatomy of a Standard XML Sitemap
The XML sitemap protocol follows the official schema defined by sitemaps.org, recognized by Google, Bing, Yahoo, and Yandex. Each URL entry contains the canonical address (<loc>) and optional metadata hints including date modified (<lastmod>), change frequency (<changefreq>), and relative importance (<priority>).
2. Sitemap Size Limits & Crawl Budget Hygiene
- Only include canonical, indexable URLs: Never list 301/308 redirects, 404/410 pages, duplicate query parameter variants, or URLs marked with
noindex. Mixing excluded or redirecting paths into your XML file wastes Googlebot crawl capacity. - 50,000 URL & 50 MB Rule: According to sitemaps.org and Google Search Central, a single sitemap file must stay under 50,000 URLs and 50 MB uncompressed. Larger sites split feeds across multiple files linked inside a master
<sitemapindex>. - Accurate lastmod Dates: Set ISO 8601 dates (
YYYY-MM-DD) only when a page undergoes meaningful editorial or structural updates. Google ignores<priority>and<changefreq>hints in modern indexing pipelines, relying primarily on honest<lastmod>signals. - Escape special characters & advertise in robots.txt: Encode ampersands (&) as
&, always specify fullhttps://URLs, and declareSitemap: https://yourdomain.com/sitemap.xmlin yourrobots.txtbefore submitting via Search Console.
3. Browser Privacy
🔒 100% Client-Side Generation
Your URLs and sitemap XML files are assembled directly in your browser memory. No domain inventories or staging routes are ever uploaded or stored on any server.