Skip to content

An XML sitemap is a hint, not an instruction. Here is how to list only canonical URLs, use lastmod honestly, avoid nested indexes, and submit sitemaps Google and Bing will trust.

An XML sitemap is a machine-readable list of the URLs you want search engines to find, usually with the date each page last changed significantly. It is not a ranking lever and it is not an instruction. Google calls submitting one “merely a hint”: it does not guarantee that Google will download the file, crawl every URL, or index anything. Used properly, it shortens discovery and gives you a controlled inventory of canonical URLs.

That matters more in 2026, when a page must be found by Google, Bing and the crawlers behind AI answers. On 27 November 2026 Google moved long-standing sitemap rules from its 2005 blog posts into current documentation. This guide follows Google’s sitemap and crawling-errors documentation, checked on 6 December 2026.

What an XML sitemap actually is — and is not

A sitemap tells a crawler which URLs exist and which version you prefer. Google says the URLs in a sitemap are the ones you want in search results: your canonical URLs. If the same content is reachable under several addresses, list the preferred one rather than every variant. It is a weak canonicalisation signal that should agree with canonical tags, internal links and redirects, not override them.

Removing a URL from a sitemap does not keep it out of Google if other pages link to it; use noindex for that. Listing a URL does not force indexing either. Google calls sitemaps “useful suggestions to Googlebot, not absolute requirements”, and most sites should not expect same-day crawling.

What Google clarified on 27 November 2026

Google’s documentation update ported still-relevant guidance from its oldest Search Central blog posts into the sitemaps documentation. Two examples were named in the changelog. First, nested sitemap index files are not supported: an index file may list individual sitemaps, but it may not point to another index file. Second, an HTML sitemap — a normal page linking to your important pages — can help visitors and search engines navigate, but it is not a format you can submit in Search Console.

Neither rule is new. Sites still build a master index above regional indexes, or submit an HTML page and wonder why nothing is processed. The same update expanded Google’s 404 guidance: if a removed URL is still listed in a sitemap, take it out. Dead, redirected or blocked URLs waste crawl attention and undermine trust in the file.

Step 1: List only canonical, indexable URLs

Start with the pages you would defend in an audit: live, returning 200, indexable, self-canonical, and reachable through internal links. Exclude parameter variants, faceted filters, internal search results, staging copies, thank-you pages, and anything blocked by robots.txt or marked noindex. If a URL redirects, list the destination, not the redirect. If a page was deleted with no equivalent replacement, remove it from the sitemap and let it return 404 or 410.

Your technical SEO audit should reconcile four lists that often disagree: sitemap, internal links, canonical tags and indexed URLs. Where they differ, fix the source rather than editing XML by hand. Treat every non-canonical sitemap URL as a bug report, not extra coverage.

Step 2: Get the format and limits right

Google supports XML sitemaps, RSS and Atom feeds, and plain text files with one URL per line. XML is the most versatile, with extensions for image, video, news and localised versions, and most CMSs already generate it. Check what your platform produces before installing anything.

The hard limits are simple and still missed. One sitemap may contain at most 50,000 URLs and 50MB uncompressed, whichever comes first; gzip compression is allowed, but the limit applies after decompression. Files must be UTF-8 encoded, URLs must be fully qualified absolute URLs, and tag values must be entity-escaped. Host the sitemap at the site root where possible, because unless it is submitted through Search Console, a sitemap affects only descendants of its parent directory.

Step 3: Use lastmod honestly, and drop the theatre

Of the optional fields, only <lastmod> earns its keep. Google ignores <priority> and <changefreq> values, so tuning them is wasted effort. Google uses lastmod when it is consistently and verifiably accurate, checked against how the page actually changed. Its 2023 guidance is explicit: the date should reflect the last significant modification — primary text, structured data or links — not a sidebar tweak, and not yesterday’s date stamped on every URL.

An accurate lastmod helps Google schedule recrawls; a fabricated one teaches Google to ignore the field. If your CMS cannot date an aggregating category page reliably, omit lastmod rather than guess. After a content refresh, update the date only when the substance changes.

Step 4: Split large sites without nesting indexes

Once you approach 50,000 URLs or 50MB, split the sitemap into multiple files and list them in a sitemap index. An index may contain up to 50,000 sitemap entries, and you may submit up to 500 sitemap index files per site in Search Console. Referenced sitemaps must be on the same site as the index, unless cross-site submission is set up, and in the same directory as the index or lower in the hierarchy.

Split by section, content type or language. Separate files for products, articles and locations show which part of the site is being indexed and which is silently failing. Do not add a master index above section indexes: flatten it, or submit several index files separately.

Step 5: Submit it where crawlers actually look

Give Google the sitemap in two places. Submit it in Search Console, where the Sitemaps report shows when Googlebot last read it and surfaces processing errors, and add a Sitemap: line with the absolute URL to robots.txt, where any compliant crawler can find it. There is no limit on sitemap lines in robots.txt. Do not rely on the old sitemap ping endpoint: Google deprecated it in 2023 after finding most unauthenticated submissions were spam.

Then do the same for Bing, whose index also feeds Microsoft Copilot. Our guide to Bing SEO and Copilot citations covers IndexNow for faster change notification; treat IndexNow as the alert and the sitemap as the full inventory. Neither guarantees indexing.

What sitemaps mean for AI Overviews and AI citations

There is no separate sitemap format for AI search, and no evidence that listing a URL earns a citation in AI Overviews, ChatGPT or Perplexity. A clean sitemap removes a mundane obstacle: an undiscovered page cannot be retrieved, quoted or cited. An accurate lastmod helps a crawler notice change; it does not make the page authoritative.

Keep the roles separate. Sitemaps handle discovery, internal linking shows importance and topic connections, and content quality decides whether a retrieved page is worth citing. Chasing citation tricks while your sitemap lists dead URLs is optimising the wrong layer.

How to measure whether your sitemap is working

Check the Search Console Sitemaps report after submission and major releases: last read date, discovered URLs and errors. Compare discovered URLs with the Page indexing report. “Alternate page with proper canonical tag” usually means non-canonical variants were listed; bulk “Crawled — currently not indexed” points at quality or duplication.

Use URL Inspection to confirm last crawl and Google-selected canonical for important updates, and server logs to verify actual fetches. Resubmitting an unchanged sitemap several times a day speeds nothing up. Review monthly, and immediately after migrations or bulk deletions.

SignalGoogle’s positionWhat to do
Submitting a sitemapA hint, not a guaranteeSubmit in Search Console and robots.txt
<priority> and <changefreq>IgnoredRemove or stop tuning them
<lastmod>Used if verifiably accurateDate significant changes only
Nested sitemap indexNot supportedFlatten to one index level
HTML sitemapCannot be submittedKeep for visitors; submit XML
Deleted URL still listedRemove it from the sitemapReturn 404/410, do not redirect home

Common sitemap mistakes

  • Listing everything. Parameter, filter and duplicate URLs dilute the inventory and contradict your canonicals.
  • Faking freshness. Stamping today’s date on every URL destroys trust in your lastmod values.
  • Nesting indexes. A master index above section indexes is unsupported; the files beneath it may never be reached that way.
  • Submitting an HTML sitemap. Useful for visitors, invisible as a Search Console submission.
  • Blocking listed URLs. A URL in the sitemap but disallowed in robots.txt sends opposite instructions.
  • Treating removal as exclusion. Taking a URL out of the sitemap does not deindex it; use noindex or a 404/410.

Frequently asked questions

Does an XML sitemap help rankings?

Not directly. A sitemap helps search engines discover and recrawl your canonical URLs, which is a precondition for ranking, but Google treats submission as a hint and publishes no ranking benefit for having one.

How many URLs can one sitemap contain?

At most 50,000 URLs or 50MB uncompressed, whichever limit comes first. Larger sites split URLs across multiple sitemaps and list those files in a sitemap index, which can reference up to 50,000 sitemaps.

Should every page have a lastmod date?

Only where the date is accurate. Google uses lastmod when it consistently matches significant changes to the page, and learns to ignore it when dates are fabricated, so omit it rather than guess.

Can I submit an HTML sitemap to Search Console?

No. Google restated on 27 November 2026 that an HTML sitemap can help visitors navigate but is not a submittable format. Submit an XML sitemap, a feed, or a text file of URLs instead.

Do AI crawlers use sitemaps?

Some crawlers read the sitemap line in robots.txt, but no AI platform guarantees discovery or citation from a sitemap. Treat it as basic inventory hygiene that supports every crawler, not as an AI optimisation tactic.

Final verdict

An XML sitemap is unglamorous infrastructure: a truthful list of canonical, indexable URLs, honest change dates, one level of index file, submitted to Google and Bing and referenced in robots.txt. Google’s November 2026 documentation update changed none of the rules; it simply moved them where site owners might finally read them. Start by downloading your current sitemap and checking fifty URLs at random for redirects, duplicates and dead pages. If you find any, fix the generator, not the file.

Sources

Keep exploring

Browse all insights

Tell us what your business needs

Your project deserves
a practical plan.

Whether you need a website, a search strategy, campaign assets or an automated workflow, TechnSEO can help you define the work.