An XML sitemap is a file that lists the pages, videos and other files on a website that you want search engines to find, with the date each one last changed. It is a hint, not an order: Google says a sitemap does not guarantee every item in it will be crawled and indexed. Most sites still benefit from one, because it gives crawlers a full list of your addresses in one place.
What is an XML sitemap? #
It is a plain text file in XML format, usually at /sitemap.xml. Each entry holds one URL and, ideally, the date its content last changed. The format is the open Sitemaps protocol, read by Google, Bing and others. People never see it. It is written for search crawlers and, more and more, for the bots that feed AI answers.
Who needs one? #
Google says 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 make it easy for pages to sit far from the home page.
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? #
| Tag | What it says | 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 and Bing’s lastmod post (1 February 2023), both checked 24 November 2026.
What are the rules? #
- Up to 50 MB uncompressed or 50,000 URLs per file. Split bigger lists.
- Full, absolute URLs, not /mypage.html.
- UTF-8 encoding, with characters such as & escaped as & (sitemaps.org).
- 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? #
Split them into several sitemaps and list those in a sitemap index file. This is Google’s example from its guide to 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? #
Yes. Google supports extensions for images, video and news, and sitemaps can carry alternate language versions for hreflang. An image sitemap can list up to 1,000 images per page, and the images may sit on another domain, such as a CDN. See image SEO and video SEO.
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), so honest dates help it spend its crawl budget on pages that really changed. Google also calls sitemap inclusion a weak signal for which URL is canonical. It never replaces good internal linking: a page in the sitemap but linked from nowhere is still an orphan page.
Why does it matter for AI answers? #
AI answers need pages that are found, fresh and indexed. Bing says sitemaps remain a foundational signal in AI-powered search (31 July 2025). It asks for a true lastmod with date and time, and suggests pairing sitemaps with IndexNow for single changes. Google says a page must be indexed to appear as a link in an 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? #
Add one line anywhere in 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, or through the Search Console API. Bing Webmaster Tools has its own Sitemaps report 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? #
Google’s Sitemaps report 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 for that. The report lists only sitemaps submitted through it or the API, and only for the current property.
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, return a 404 or 410, or carry noindex.
- Listing filter and sort addresses with URL parameters 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.
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 #
- Find it. Open /robots.txt and look for the Sitemap line. The Robots.txt Checker shows it and tests that your rules do not block the URLs inside.
- Test the file. The XML Sitemap Checker reads the sitemap or index, counts URLs and flags errors, redirects and blocked addresses.
- Check the status of each URL. The HTTP Header Checker shows the HTTP status code and any X-Robots-Tag. The Redirect Checker shows every hop of a redirect chain.
- Check the page agrees. The Meta Tag Checker shows the robots tag and canonical tag. A sitemap URL should be its own canonical. The Broken Link Checker finds dead links on the page.
- Check the dates are honest. Run the Last-Modified Checker, or compare a few lastmod dates with the real edit history.
- Check AI can use it. The AI Readiness Checker looks at the sitemap with your llms.txt and other AI signals; the llms.txt Checker tests that file on its own. Compare Two Websites sets your result beside a rival’s.
- Watch it. In URSY Pro, opening in stages: the Sitemap monitor tracks errors and changes, the Index coverage monitor shows what Google has and has not indexed, Orphan pages finds pages nothing links to, and the AI door monitor watches sitemaps, llms.txt and feeds with alerts.
What URSY.com 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 and AI crawlers read your sitemap, and how often. See our methodology.
Questions #
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? #
If images matter to you, yes. An image sitemap or image tags can list up to 1,000 images per page.
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? #
Yes. List them all in a sitemap index, or name each one in robots.txt.
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.
Related words #
- robots.txt
- IndexNow
- Crawl budget
- Canonical tag
- Google Search Console
- Orphan page
- Discovered, currently not indexed
- Search engine index
- Technical SEO
Sources #
- Google Search Central: What is a sitemap, checked 24 November 2026
- Google Search Central: Build and submit a sitemap, checked 24 November 2026
- Google Search Central: Manage your sitemaps with a sitemap index file, checked 24 November 2026
- Google Search Central: Image sitemaps, checked 24 November 2026
- Search Central blog: Sitemaps ping endpoint is going away (26 June 2023), checked 24 November 2026
- Search Console Help: Sitemaps report, checked 24 November 2026
- sitemaps.org: Sitemaps XML format, checked 24 November 2026
- Bing Webmaster Blog: The importance of setting the lastmod tag in your sitemap (1 February 2023), checked 24 November 2026
- Bing Webmaster Blog: Keeping content discoverable with sitemaps in AI-powered search (31 July 2025), checked 24 November 2026
- Bing Webmaster Blog: Start using Bing Webmaster Tools to improve your site visibility (17 June 2025), checked 24 November 2026
- Google Search Central: How to specify a canonical URL, checked 24 November 2026
- Google Search Central: AI features and your website, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: What is an XML sitemap?. URSY. Updated 26 November 2026. https://ursy.com/wiki/xml-sitemap/ · Section links
Tools for this
- LiveXML Sitemap CheckerRun the check →
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →
- ProAI door monitorllms.txt, feeds, sitemaps, MCP watched, with alertsIn URSY Pro →
- ProSitemap monitorSitemap errors and changesIn URSY Pro →
- ProImage SEO auditAlt text, sizes, formats, image sitemapsIn URSY Pro →