Back to glossary

XML Sitemap

An XML file that lists important URLs on your site along with metadata like last modification date and change frequency. XML sitemaps help search engines discover and prioritize pages for crawling, especially on large or complex sites.

XML sitemaps serve as a roadmap for search engine crawlers, explicitly listing which pages you want indexed and providing hints about their relative importance and update frequency. While search engines discover pages through crawling links, sitemaps ensure important pages are found even if they have poor internal linking.

For growth teams running content-heavy or programmatically generated sites, sitemaps are essential infrastructure. Generate sitemaps dynamically to include only indexable, canonical pages. Split large sitemaps into index files with individual sitemaps of up to 50,000 URLs each. Include lastmod dates that reflect actual content changes (not just template updates) to help search engines prioritize fresh crawls. Submit sitemaps through Google Search Console and reference them in your robots.txt. Next.js and other modern frameworks can generate sitemaps at build time or on-demand. Monitor sitemap coverage in Search Console to identify discrepancies between submitted URLs and indexed pages, which often reveals technical issues blocking indexing.

Related Terms