Skip to content
Enjoy 20% off for 12 months on all plans. Use promo code: HYPERGROWTHClaim it

Crawling and indexing

What is an XML sitemap, and does your site need one?

An XML sitemap is a file that lists the URLs on a site you want search engines to find, with optional details such as when each page last changed.

Also calledSitemap.xml

One entry in an XML sitemap

  1. 1<url>
  2. 2<loc>https://example.com/services/boiler-repair</loc>
  3. 3<lastmod>2026-09-12</lastmod>
  4. 4</url>

The page address, and the date its content last changed.

What Google reads in it

Each entry is a url element with the page address in loc and, optionally, a lastmod date. Google's documentation says it ignores the priority and changefreq values, and uses lastmod only when it is consistently and verifiably accurate. One sitemap can hold up to 50,000 URLs or 50MB uncompressed; a bigger site splits them and lists the files in a sitemap index.

Do you need one?

Google says a site might not need a sitemap if it is small, about 500 pages or fewer that matter for search, and every important page can be reached by following links from the home page. You are more likely to need one when the site is large, new with few links from other sites, or has a lot of video, images or news.

A sitemap is a hint. Listing a URL doesn't guarantee it gets crawled or indexed.

Keeping it useful

List only pages you want in search results: no redirects, no noindex pages, no duplicates of a canonical URL. Update lastmod only when the content really changes, then submit the sitemap in Search Console or add it to robots.txt.

SEO glossary

Every term starts with a one-sentence answer and links the free tool or lesson that helps next.

All terms

XML sitemap: questions people ask

Where do I submit my sitemap?

In Google Search Console under Sitemaps, and with a Sitemap line in your robots.txt file so other crawlers find it too.

Does a sitemap help my pages rank?

Not directly. It helps search engines find pages; ranking depends on the pages themselves.

See which searches your own site should answer next.

Start with the plan for your own site: which page targets each search, and what to write next. The first one is free.

  • Free first plan
  • No credit card
  • Keep your plan