What is an XML sitemap?

An XML sitemap is a file, usually at yoursite.com/sitemap.xml, that lists the pages you want search engines to crawl and index. It does not make pages rank, but it helps Google find them faster, especially on new sites, large sites and pages with few links pointing to them. You submit it in Search Console and Bing Webmaster Tools.

XML sitemap explained: definition, where it sits in the buying journey and three key points, by Oftsaid
XML sitemap at a glance. Free to share with a link back to this page.

Where XML sitemap sits in the buying journey

DiscoverSomeone has a question
ConsiderThey compare options
ConvertThey act or enquire
KeepYou measure and grow

Topic: SEO

How it connects to other terms

Robots.txtTechnical SEOSearch ConsoleCrawl budgetXML sitemapCanonical tagllms.txt

What goes in an XML sitemap?

  • Every page you want in search results, as its final, canonical address.
  • The last real modification date of each page, called lastmod.
  • Nothing you would not want indexed: no redirected pages, no 404s, no thank you pages, no duplicates.

Google's sitemap documentation says it ignores the priority and changefreq fields, and uses lastmod only when it is consistently accurate. A single sitemap can hold up to 50,000 URLs or 50 MB; bigger sites split it and list the parts in a sitemap index.

How do you create and submit one?

  1. Let your platform generate it. WordPress with Yoast or Rank Math, Shopify and Wix all create one automatically. A hand built site can generate it at build time.
  2. Open it in a browser and check the URLs are right.
  3. Add a line to robots.txt: Sitemap: https://yoursite.com/sitemap.xml
  4. Submit it in Search Console under Sitemaps, and in Bing Webmaster Tools.
  5. Check the status a few days later. 'Success' and a count of discovered pages means Google has read it.

Does a sitemap guarantee indexing?

No. A sitemap is a list of suggestions. Google still decides whether each page is worth indexing, based on quality, duplication and how much it trusts the site. A page can sit in a sitemap for months as 'Discovered, currently not indexed' if Google does not think it adds anything.

What sitemap errors does Search Console report?

  • Couldn't fetch: Google could not read the file. Check the address and that the server returns it.
  • Has errors: the file loads but some entries are invalid, often bad dates or wrong addresses.
  • Submitted URL blocked or marked noindex: the sitemap lists pages you have told Google not to index. Remove them from the sitemap.

What does a sitemap actually do for a brand new site?

It gets pages found before anything links to them. We saw this on our own site. Oftsaid.com launched in November 2026 with a sitemap listing every page, submitted to Search Console on 16 November. By 20 November, URL Inspection showed the B2B lead generation and restaurant marketing pages as indexed, with our sitemap listed in the discovery details, even though we had not requested indexing for either page.

So on a new site, a clean sitemap does most of the discovery work. Manual indexing requests are worth spending on a handful of priority pages, because Search Console limits how many you can make each day.

  • Submit the sitemap on launch day, not after the site 'settles'.
  • List only pages you want indexed, so every entry is worth Google's time.
  • Update lastmod only when a page really changes. Google ignores the date if it is not reliable.

Written after checking the pages that rank for this term in November 2026. It covers what they leave out.

What is an example?

Say a Pune furniture maker has 340 product pages but only 90 in Google. If the platform's sitemap lists every colour variant as a separate URL, most entries are near duplicates and Google skips them. Merging the variants and listing only the main product pages gives Google a clean list of pages that are worth indexing.

How often do people search for "xml sitemap"?

About 4,400 searches a month in India and 2,400 in the US, for the phrase "xml sitemap", according to Semrush keyword data from November 2026.

Interest in India has been rising over the last 12 months. Ranking for it in India is held by established sites, so newer sites do better targeting longer questions around it (Semrush difficulty 78 out of 100). Advertisers bidding on it in India pay about $0.47 per click on Semrush estimates, which tells you there is commercial intent behind the search.

MarketMonthly searchesDifficulty (0 to 100)
India4,40078
United States2,40071

India, last 12 months

Source: Semrush keyword data for India and the US, November 2026. Volumes are estimates and change month to month.

What else do people ask about XML sitemaps?

Do small sites need a sitemap?

It helps even on small sites, especially new ones with few links pointing in. It costs nothing to add.

How often should a sitemap update?

Whenever pages are added, removed or meaningfully changed. Most platforms do this automatically.

What is an image sitemap?

An extension that lists images on each page, which helps Google find images that load in ways it might miss.