Classic Search
XML Sitemap
An XML sitemap is a file in the sitemaps.org format that lists the URLs a site wants search engines to crawl, with an optional last-modified date for each. It helps crawlers discover pages, especially on large or new sites, but it does not guarantee that any listed page is crawled or indexed.
- Industry term
By QueryRev ResearchPublished Updated6 min read
Why it matters.
The format is a protocol. A sitemap opens with a urlset tag, holds a url entry for each page, and gives each entry a loc tag with the address; every other tag is optional, the file must be UTF-8, and all its URLs must come from one host[1]. One file may list at most 50,000 URLs and be no larger than 50 MB uncompressed, and a larger site lists several sitemaps in a sitemap index file[1].
What it does is help discovery. Google says a sitemap helps search engines find URLs on a site but does not guarantee that every item in it will be crawled and indexed[2]. It adds the most on a large site, where it is harder to link every page, on a new site with few links from outside and on one with a lot of video or image content[2]. A site of about 500 pages or fewer that is comprehensively linked from its home page may not need one[2].
It is also a statement of intent. A sitemap tells search engines which pages the site thinks are important[2], and Google advises listing the URLs the site wants to see in its search results, which are the canonical ones, and listing only the preferred address when one page has several[3]. A URL that redirects, answers with an error or carries a noindex rule contradicts that statement, and Google’s Sitemaps report suggests replacing redirect URLs with the pages that should actually be crawled[4].
A sitemap can be found in more than one way. A site can list its sitemap in its robots.txt file, the file that also holds its crawl rules[4]. In QueryRev’s study, of the 6,294 sites whose robots.txt answer could be read, 5,637 had a file and 657 had none[5].
How it is measured.
Google’s Sitemaps report shows each submitted sitemap with its status (success, errors or could not fetch), the date it was last read and the number of page URLs discovered in it. Discovery is no guarantee that a URL has been or will be crawled or indexed, and the Page indexing report can be filtered by sitemap to see how many of its URLs are indexed[4]. Only sitemaps submitted through the report or its API are listed there.
Several sitemaps are easier to read than one. Google notes that submitting several, for example one per section of the site, makes it possible to track the search performance of each in Search Console[3]. A listed-to-indexed ratio per sitemap shows where the gap is.
Check the file against the site. Crawl every listed URL and record its status code, its canonical and whether it can be indexed. Then crawl the site from its home page and list the canonical pages that are linked but missing from the file, and the pages that are listed but linked from nowhere, an orphan page that only the sitemap vouches for.
Check the dates. Google uses a lastmod value if it is consistently and verifiably accurate, as when it matches the last modification of the page[3]. Compare each lastmod with the page’s own last significant change.
Measured by
- URLs listed
- Listed URLs indexed
- Listed URLs that conflict
A worked example.
Sample data: an invented site, to show the method.
A sample shop’s sitemap lists three URLs. The first is a canonical page that answers 200 and can be indexed. The second answers with a 301 redirect to the first. The third is a cart step that carries noindex.
The file tells search engines that the shop wants all three crawled. The redirect points to a page already listed, and the cart page says on its own that it should stay out of the index. A crawl of the three URLs finds both conflicts in a minute, and the fix is two deletions. The listed-to-indexed ratio of the file is judged only after that, because it counted two URLs that could never be indexed.
What to do, step by step.
Find the site’s sitemaps: the Sitemap lines of its robots.txt, the usual addresses and what the CMS generates.
Crawl every listed URL and record its status code, its canonical and whether it carries noindex.
Take out the URLs that redirect, answer with an error, carry noindex or point to another canonical. Where a URL redirects, list its target.
Add the canonical, indexable pages that are linked from the site but missing from the file.
Set lastmod to the date of the page’s last significant change, and leave priority and changefreq out, since Google ignores them[3].
Submit the sitemaps in the Sitemaps report, one per section if the site is large, and compare listed with indexed each month.
Mistakes to avoid.
Listing every URL. A sitemap is a list of the pages the site wants in search results. Parameter URLs, redirects, noindex pages and non-canonical duplicates make the list say something the site does not mean.
A lastmod that moves with every build. The protocol says the date must be the day the page was last modified, not the day the sitemap was generated[1]. A date that changes on every build is not accurate, and Google uses lastmod only if it is consistently and verifiably accurate[3].
Filling in priority and changefreq. Google ignores both[3]. Time spent tuning them is time not spent on the list itself.
Blocking the sitemap itself. Google respects robots.txt when fetching sitemaps, and a sitemap blocked there is reported as one it could not fetch[4].
How QueryRev treats it.
QueryRev reads a site’s sitemaps with the rest of its crawl state and compares each listed URL with what the crawl finds: its status, its canonical, whether it can be indexed and whether anything links to it. A listed URL that redirects, errors or carries noindex, and a canonical page missing from the file, show as findings with the evidence. A change to the file is a change to the site: it passes your policy and is written to the Change Ledger. See Search Intelligence and the guide to the SEO audit report.
Questions people ask.
Do I need an XML sitemap?
Often, but not always. Google says a small site of about 500 pages or fewer that is comprehensively linked may not need one. A large site, a new site with few links from outside and a site with many videos or images benefit most.
Does a sitemap make Google index my pages?
No. A sitemap helps Google discover URLs, but listing a URL does not guarantee that it will be crawled or indexed. Whether a page is indexed depends on the page itself.
Where does the sitemap go, and how large can it be?
Google recommends the root of the site. One sitemap holds up to 50,000 URLs or 50 MB uncompressed, and a larger site splits its URLs across several files, listed in a sitemap index.
Sources and citation.
Primary sources only: the search engines, the AI vendors, standards bodies and QueryRev’s own research. Each is cited in the text by its number.
Sitemaps XML formatsitemaps.org ·
Learn about sitemapsGoogle Search Central ·
Build and submit a sitemapGoogle Search Central ·
Sitemaps reportGoogle Search Console Help ·
State of AI crawler access, October 2026QueryRev Research ·
Cite this definition
A suggested citation. Its link goes to the definition, whose anchor does not change.
QueryRev Research. “XML Sitemap.” QueryRev AI glossary, 23 October 2026. https://queryrev.com/glossary/xml-sitemap#definition
Related terms