← Glossary

What is an XML Sitemap? SEO Guide

Definition

An XML sitemap is a file that lists the URLs on a website you want search engines to discover and crawl. It uses a structured XML format defined by the Sitemaps protocol and can include metadata such as the last modification date, change frequency, alternate language versions (hreflang), and image or video data.

Why XML sitemaps matter

  • Discovery — surfaces pages that internal linking might not reach quickly, especially on large or new sites.
  • Multilingual signals — declares hreflang alternates so the right language version surfaces in each market.
  • Crawl prioritization — lastmod hints help search engines focus on pages that actually changed.
  • Index coverage reporting — Google Search Console reports indexing status against URLs you submitted in a sitemap.

Best practices

  1. Only include canonical, indexable URLs that return a 200 status — never list redirects, 404s, or noindexed pages.
  2. Keep individual sitemaps under 50,000 URLs or 50 MB uncompressed; use a sitemap index for larger sites.
  3. Reference your sitemap in robots.txt with a Sitemap: directive.
  4. Submit it in Google Search Console and Bing Webmaster Tools.

A clean XML sitemap accelerates indexing and improves coverage reporting. Make sure every URL it lists is reachable — scan your site to catch broken or redirected URLs that should not be in your sitemap.

Crawls your whole site, then keeps watching

Find broken links on your website

Detect dead links, missing images, and redirect loops before they hurt your SEO. Free, no signup required.

Check for broken links