Skip to main content
SerpGem

XML Sitemap

A structured XML file listing all important URLs on a website to help search engines discover and prioritise them for crawling.

Definition

An XML sitemap is a file that lists the URLs on your website in a structured format, following the Sitemap Protocol (sitemaps.org). It helps search engines like Googlebot discover pages they might not find through normal link-following, particularly new content, pages with few internal links (orphan pages), and large sites with deep hierarchies.

Each URL entry in a sitemap can include optional metadata: <lastmod> (date of last modification, which helps prioritize re-crawls), <changefreq> (how often the page changes — a hint, not a directive), and <priority> (relative importance within the site, from 0.0 to 1.0). Google has stated that changefreq and priority are largely ignored in practice, but lastmod is a useful crawl prioritization signal if kept accurate.

XML sitemaps can be split into index sitemaps (a sitemap of sitemaps) for large sites, with each individual sitemap file limited to 50,000 URLs and 50MB uncompressed. Submit your sitemap URL via Google Search Console (and Bing Webmaster Tools) and reference it in your robots.txt file with a Sitemap: directive. Keep the sitemap up to date — including only canonical, indexable URLs — to avoid confusing crawlers with URLs that redirect or return noindex.

Frequently Asked Questions

Is an XML sitemap required for SEO?
Not required, but strongly recommended. Google can discover pages through links alone, but for large sites, new sites with few external links, or sites with rich media content, a sitemap significantly accelerates discovery and indexing. It is one of the lowest-effort, highest-impact technical SEO improvements available.
Should I include every URL in my sitemap?
Only include canonical, indexable URLs (pages without noindex tags that you actually want ranked). Exclude: redirect chains, pages with noindex directives, URL parameter variants, admin/login pages, and paginated pages beyond page 1 (optionally). A clean sitemap helps Google trust the signal it provides.