Technical SEO

XML sitemap

An XML sitemap is a file that lists the pages on your site you want search engines to find and index, often with the date each was last updated.

A computer screen full of code

What a good sitemap includes

  • Only pages you want indexed: no redirects, errors or noindex pages.
  • Accurate last-modified dates, updated when content changes.
  • New pages as soon as they're published.

How to use it

Reference it in robots.txt and submit it in Google Search Console and Bing Webmaster Tools. Then check the reports for pages that were submitted but not indexed.

What a good sitemap includes

  • Only pages you want indexed: no redirects, errors or noindexed pages.
  • The canonical version of each URL. See canonical tag.
  • Accurate last-modified dates, updated when content really changes.
  • Separate sitemaps for large sections, listed in a sitemap index.

Submit and monitor

Reference the sitemap in robots.txt and submit it in Google Search Console and Bing Webmaster Tools. Check the indexing reports regularly to spot pages that are submitted but not indexed, which often points to quality or duplicate issues.

Quick quiz

Test yourself: XML sitemap

Three quick questions. Pick an answer to see why it is right or wrong.

  1. 1. Which pages belong in an XML sitemap?

  2. 2. Where should you submit your sitemap?

  3. 3. When should the last-modified date change?

0 of 3 answered

Frequently asked questions

  • No, but it helps search engines discover pages, especially on new sites or pages with few links.

  • Up to 50,000 URLs per file. Larger sites use a sitemap index.

  • It's not essential if every page is well linked, but it's easy to add and helps new pages get found faster. Most CMS and frameworks generate one automatically.

Go deeper: the complete guideSaaS SEO: The Complete Guide to Ranking for Pipeline
Let's build what's next

Ready to make growth compound?

Tell us where you want to be in twelve months. We'll show you the channel-by-channel plan to get there.