---
title: "What is an XML sitemap?"
description: "An XML sitemap is a file listing the pages and files you want search engines to find, with the date each last changed. It is a hint, not an order."
url: https://ursy.com/wiki/xml-sitemap/
updated: 2026-11-26T15:41:51+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/xml-sitemap/
---

# What is an XML sitemap?

> An XML sitemap is a file listing the pages and files you want search engines to find, with the date each last changed. It is a hint, not an order.

**An XML sitemap is a file that lists the pages, videos and other files on a website that you want [search engines](https://ursy.com/wiki/search-engine/) to find, with the date each one last changed.** It is a hint, not an order: [Google](https://ursy.com/wiki/google/) says a sitemap [does not guarantee every item in it will be crawled and indexed](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview). Most sites still benefit from one, because it gives crawlers a full list of your addresses in one place.

## What is an XML sitemap? {#what-is-an-xml-sitemap}

It is a plain text file in XML format, usually at /sitemap.xml. Each entry holds one [URL](https://ursy.com/wiki/url/) and, ideally, the date its content last changed. The format is the open [Sitemaps protocol](https://www.sitemaps.org/protocol.html), read by Google, [Bing](https://ursy.com/wiki/bing/) and others. People never see it. It is written for [search crawlers](https://ursy.com/wiki/search-crawler/) and, more and more, for the [bots](https://ursy.com/wiki/bot-web-robot/) that feed AI answers.

## Who needs one? {#who-needs-one}

[Google says](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview) a sitemap helps most when a site is large, new with few outside links, or rich in video, images or news. A small site, about 500 pages or fewer, that is fully linked inside may not need one (Google, checked 24 November 2026). A shop is rarely in that group: filters, products and [pagination](https://ursy.com/wiki/pagination/) make it easy for pages to sit far from the home page.

## What does it look like? {#what-does-it-look-like}

This is Google’s own example:

```
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/foo.html</loc>
    <lastmod>2022-06-04</lastmod>
  </url>
</urlset>
```

The urlset wrapper, one url entry per page and a loc inside each are required. Everything else is optional.

## Which tags matter? {#which-tags-matter}

| Tag | What it says | Google | Bing |
| --- | --- | --- | --- |
| loc | The full address of the page | Required | Required |
| lastmod | When the page’s content last changed | Used only when consistently and verifiably accurate | Called “an especially important signal” |
| changefreq | How often the page is likely to change | Ignored | Largely disregarded |
| priority | Importance from 0.0 to 1.0 inside your own site | Ignored | Largely disregarded |

Sources: [Google’s sitemap guide](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap) and [Bing’s lastmod post](https://blogs.bing.com/webmaster/february-2023/The-Importance-of-Setting-the-lastmod-Tag-in-Your-Sitemap) (1 February 2023), both checked 24 November 2026.

## What are the rules? {#what-are-the-rules}

- Up to 50 MB uncompressed or 50,000 URLs per file. Split bigger lists.
- Full, [absolute URLs](https://ursy.com/wiki/absolute-url/), not /mypage.html.
- UTF-8 encoding, with characters such as & escaped as &amp; ([sitemaps.org](https://www.sitemaps.org/protocol.html)).
- Each loc under 2,048 characters.
- A sitemap in a folder covers only that folder and below, so put it at the root. Google says sitemaps submitted in Search Console are not limited this way.
- List only the URLs you want in search results: the canonical version of each page, not every address that shows the same content.

## What if I have more than 50,000 URLs? {#what-if-i-have-more-than-50000-urls}

Split them into several sitemaps and list those in a sitemap index file. This is Google’s example from its guide to [large sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps):

```
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.example.com/sitemap1.xml.gz</loc>
    <lastmod>2024-08-15</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemap2.xml.gz</loc>
    <lastmod>2022-06-05</lastmod>
  </sitemap>
</sitemapindex>
```

A sitemap index can hold up to 50,000 loc tags, and Google lets you submit up to 500 sitemap index files for each site in Search Console. Google’s Sitemaps report help adds that an index cannot list other index files, only sitemaps.

## Are there special sitemaps? {#are-there-special-sitemaps}

Yes. Google supports extensions for images, video and news, and sitemaps can carry alternate language versions for [hreflang](https://ursy.com/wiki/hreflang/). An [image sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps) can list up to 1,000 images per page, and the images may sit on another domain, such as a [CDN](https://ursy.com/wiki/cdn/). See [image SEO](https://ursy.com/wiki/image-seo/) and [video SEO](https://ursy.com/wiki/video-seo/).

## Why does it matter for search? {#why-does-it-matter-for-search}

A sitemap speeds up discovery. A new product that no page links to yet can still be found. Google uses lastmod “as a signal for scheduling crawls” of URLs it already knows ([Search Central blog, 26 June 2023](https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping)), so honest dates help it spend its [crawl budget](https://ursy.com/wiki/crawl-budget/) on pages that really changed. Google also calls sitemap inclusion [a weak signal](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) for which URL is canonical. It never replaces good [internal linking](https://ursy.com/wiki/internal-linking/): a page in the sitemap but linked from nowhere is still an [orphan page](https://ursy.com/wiki/orphan-page/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

AI answers need pages that are found, fresh and indexed. Bing says sitemaps [remain a foundational signal](https://blogs.bing.com/webmaster/July-2025/Keeping-Content-Discoverable-with-Sitemaps-in-AI-Powered-Search) in AI-powered search (31 July 2025). It asks for a true lastmod with date and time, and suggests pairing sitemaps with [IndexNow](https://ursy.com/wiki/indexnow/) for single changes. Google says a page must be indexed to appear as a link in an [AI Overview](https://ursy.com/wiki/ai-overview/). A sitemap does not put you in an AI answer, but a page that is never found cannot be in one.

## How do I submit it? {#how-do-i-submit-it}

Add one line anywhere in [robots.txt](https://ursy.com/wiki/robots-txt/), such as `Sitemap: https://example.com/my_sitemap.xml`, so any crawler that reads robots.txt can find it. Then submit it in the Sitemaps report in [Google Search Console](https://ursy.com/wiki/google-search-console/), or through the Search Console API. [Bing Webmaster Tools](https://ursy.com/wiki/bing-webmaster-tools/) has its own [Sitemaps report](https://blogs.bing.com/webmaster/2025/6/Start-Using-Bing-Webmaster-Tools-to-Improve-Your-Site-Visibility/) and processes sitemaps at least once every 24 hours. The old Google “ping” address no longer works: Google deprecated it in June 2023 and says pings now return a 404.

## What does the Sitemaps report tell me? {#what-does-the-sitemaps-report-tell-me}

Google’s [Sitemaps report](https://support.google.com/webmasters/answer/7451001) shows each sitemap you submitted, when Google last read it and a status: Success, Has errors or Couldn’t fetch. It counts the pages and videos it discovered. Discovered does not mean indexed: check the [Page indexing report](https://ursy.com/wiki/page-indexing-report-index-coverage/) for that. The report lists only sitemaps submitted through it or the API, and only for the current property.

## Common mistakes {#common-mistakes}

- Setting every lastmod to today. Google and Bing both say the date must reflect the content, not the moment the file was built.
- Listing URLs that [redirect](https://ursy.com/wiki/redirect/), return a [404 or 410](https://ursy.com/wiki/404-and-410/), or carry [noindex](https://ursy.com/wiki/noindex/).
- Listing filter and sort addresses with [URL parameters](https://ursy.com/wiki/url-parameter/) instead of the canonical page.
- Blocking the sitemap’s own URLs in robots.txt.
- Mixing http and https, or www and non-www, in one file.
- Forgetting to update the sitemap after a move. See [move a website without losing traffic](https://ursy.com/wiki/move-a-website-without-losing-traffic/).

## A worked example {#a-worked-example}

A shop has 120,000 product pages, 900 category pages and 300 guides. It needs at least three product sitemaps, because each file holds 50,000 URLs at most.

| File | URLs | lastmod comes from |
| --- | --- | --- |
| sitemap-products-1.xml | 50,000 | The last real change to price, stock or text |
| sitemap-products-2.xml | 50,000 | The same |
| sitemap-products-3.xml | 20,000 | The same |
| sitemap-categories.xml | 900 | The last change to the category text or product list |
| sitemap-guides.xml | 300 | The editor’s “updated” date |

All five go in one sitemap index, named in robots.txt and submitted once. Splitting by type also makes the Sitemaps report more useful: if guides are discovered but products are not indexed, you know where to look.

## How to check it {#how-to-check-it}

1. **Find it.**  Open /robots.txt and look for the Sitemap line. The [Robots.txt Checker](https://ursy.com/robots-txt-checker/) shows it and tests that your rules do not block the URLs inside.
2. **Test the file.**  The [XML Sitemap Checker](https://ursy.com/sitemap-checker/) reads the sitemap or index, counts URLs and flags errors, redirects and blocked addresses.
3. **Check the status of each URL.**  The [HTTP Header Checker](https://ursy.com/http-header-checker/) shows the [HTTP status code](https://ursy.com/wiki/http-status-code/) and any [X-Robots-Tag](https://ursy.com/wiki/x-robots-tag/). The [Redirect Checker](https://ursy.com/redirect-checker/) shows every hop of a [redirect chain](https://ursy.com/wiki/redirect-chain/).
4. **Check the page agrees.**  The [Meta Tag Checker](https://ursy.com/meta-tag-checker/) shows the robots tag and [canonical tag](https://ursy.com/wiki/canonical-tag/). A sitemap URL should be its own canonical. The [Broken Link Checker](https://ursy.com/broken-link-checker/) finds dead links on the page.
5. **Check the dates are honest.**  Run the [Last-Modified Checker](https://ursy.com/lastmod-checker/), or compare a few lastmod dates with the real edit history.
6. **Check AI can use it.**  The [AI Readiness Checker](https://ursy.com/ai-readiness-checker/) looks at the sitemap with your [llms.txt](https://ursy.com/wiki/llms-txt/) and other AI signals; the [llms.txt Checker](https://ursy.com/llms-txt-checker/) tests that file on its own. [Compare Two Websites](https://ursy.com/compare-websites/) sets your result beside a rival’s.
7. **Watch it.**  In URSY Pro, opening in stages: the [Sitemap monitor](https://ursy.com/pro/sitemap-monitor/) tracks errors and changes, the [Index coverage monitor](https://ursy.com/pro/index-coverage-monitor/) shows what Google has and has not indexed, [Orphan pages](https://ursy.com/pro/orphan-pages/) finds pages nothing links to, and the [AI door monitor](https://ursy.com/pro/ai-door-monitor/) watches sitemaps, llms.txt and feeds with alerts.

## What URSY.com counts {#what-ursy-counts}

A sitemap fetch is a request like any other, so we count it: from the edge log and from the origin, with the bot’s name. Each named bot is checked against the company’s published IP list and marked real, fake or unknown. That shows which [search engines](https://ursy.com/wiki/search-crawler/) and [AI crawlers](https://ursy.com/wiki/ai-crawler/) read your sitemap, and how often. See our [methodology](https://ursy.com/methodology/).

## Questions {#questions}

### Does a sitemap help my rankings? {#does-a-sitemap-help-my-rankings}

Not directly. It helps pages get found and recrawled. Ranking depends on the pages themselves.

### Should I include images in my sitemap? {#should-i-include-images-in-my-sitemap}

If images matter to you, yes. An [image sitemap](https://ursy.com/wiki/image-sitemap/) or image tags can list up to 1,000 images per page.

### How often should a sitemap update? {#how-often-should-a-sitemap-update}

Whenever a page changes. Bing suggested in 2023 that sitemaps be generated at least daily. Most site systems update theirs automatically.

### Can I have more than one sitemap? {#can-i-have-more-than-one-sitemap}

Yes. List them all in a sitemap index, or name each one in robots.txt.

### Do AI crawlers read sitemaps? {#do-ai-crawlers-read-sitemaps}

Your own logs are the only reliable answer: they show which bots fetched the file and when. See [server logs](https://ursy.com/wiki/server-logs/).

## Related words {#related-words}

- [robots.txt](https://ursy.com/wiki/robots-txt/)
- [IndexNow](https://ursy.com/wiki/indexnow/)
- [Crawl budget](https://ursy.com/wiki/crawl-budget/)
- [Canonical tag](https://ursy.com/wiki/canonical-tag/)
- [Google Search Console](https://ursy.com/wiki/google-search-console/)
- [Orphan page](https://ursy.com/wiki/orphan-page/)
- [Discovered, currently not indexed](https://ursy.com/wiki/discovered-currently-not-indexed/)
- [Search engine index](https://ursy.com/wiki/search-engine-index/)
- [Technical SEO](https://ursy.com/wiki/technical-seo/)

## Sources {#sources}

- [Google Search Central: What is a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview), checked 24 November 2026
- [Google Search Central: Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap), checked 24 November 2026
- [Google Search Central: Manage your sitemaps with a sitemap index file](https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps), checked 24 November 2026
- [Google Search Central: Image sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps), checked 24 November 2026
- [Search Central blog: Sitemaps ping endpoint is going away (26 June 2023)](https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping), checked 24 November 2026
- [Search Console Help: Sitemaps report](https://support.google.com/webmasters/answer/7451001), checked 24 November 2026
- [sitemaps.org: Sitemaps XML format](https://www.sitemaps.org/protocol.html), checked 24 November 2026
- [Bing Webmaster Blog: The importance of setting the lastmod tag in your sitemap (1 February 2023)](https://blogs.bing.com/webmaster/february-2023/The-Importance-of-Setting-the-lastmod-Tag-in-Your-Sitemap), checked 24 November 2026
- [Bing Webmaster Blog: Keeping content discoverable with sitemaps in AI-powered search (31 July 2025)](https://blogs.bing.com/webmaster/July-2025/Keeping-Content-Discoverable-with-Sitemaps-in-AI-Powered-Search), checked 24 November 2026
- [Bing Webmaster Blog: Start using Bing Webmaster Tools to improve your site visibility (17 June 2025)](https://blogs.bing.com/webmaster/2025/6/Start-Using-Bing-Webmaster-Tools-to-Improve-Your-Site-Visibility/), checked 24 November 2026
- [Google Search Central: How to specify a canonical URL](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls), checked 24 November 2026
- [Google Search Central: AI features and your website](https://developers.google.com/search/docs/appearance/ai-features), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
