What the file represents
A maintained list of pages and other supported files that you want search engines to discover.
Technical SEO
An XML sitemap is a discovery aid, not an indexing switch. Include URLs you want search engines to consider, make sure they agree with your canonical and indexability signals, and use Search Console to monitor sitemap processing and URL status.

The short answer
List important, indexable canonical URLs that you want search engines to discover. Keep the sitemap current, submit its location in Search Console if useful, and investigate mismatches between the submitted URLs and the pages you intend to appear in Search. Submission does not guarantee crawling, indexing, or a search result.
A maintained list of pages and other supported files that you want search engines to discover.
A sitemap can help Google discover URLs, but does not guarantee crawling or indexing.
The indexed report describes Google's stored data; a live test checks the page as it can be accessed now.
A sitemap is a discovery signal: it tells search engines which URLs and files you consider important. It does not force a crawl or make a URL eligible for indexing by itself. Google can discover pages through links, and it does not guarantee that every discovered or submitted page will be crawled or indexed. Google's sitemap overview and its guide to how Search works describe those distinctions.
Start with pages you want considered for Search. Check that each URL is the preferred canonical version, works for visitors, and is not intentionally excluded from indexing.
Pass criterionThe list matches the site's intended search landing pages, not every URL the site can generate.
Fetch the sitemap and inspect a sample of its entries. Compare those URLs with page canonicals, redirects, and indexability directives.
Pass criterionSampled entries resolve as intended and do not conflict with the preferred canonical URLs.
Use the Search Console Sitemaps report to submit the sitemap location and review its reported processing. Use URL Inspection for specific page-level questions.
Pass criterionYou can identify the submitted sitemap and investigate individual URLs without treating a report status as an indexing guarantee.
Custom diagram
A flow diagram separates URL discovery through a sitemap or links from crawling, indexing, and possible Search appearance.
A sitemap or a crawlable link can help Google find a URL.
Googlebot must be able to access the URL and decide to crawl it.
Google evaluates the page and may or may not add it to the index.
An indexed page is eligible to appear, but its appearance is not guaranteed.
Include URLs that represent useful pages you want search engines to consider—not every address that returns a response. For a typical page, check that it is the preferred version, returns the intended page, and does not carry a directive that blocks indexing. Google describes sitemap inclusion as a weak canonicalization signal; it should agree with the page's rel="canonical" and other signals rather than contradict them. Google's canonicalization guidance explains that redirects and canonical annotations are stronger signals.
| URL type | Sitemap decision | Check before including |
|---|---|---|
| Preferred, useful page intended for Search | Usually include | Confirm it is the canonical version and can be indexed. |
| Duplicate or alternate URL | Usually omit in favor of the preferred URL | Check the canonical target and any redirect. |
| URL intentionally excluded from indexing | Omit | Confirm the exclusion is intentional; sitemap omission alone does not enforce it. |
| URL that redirects or returns an error | Usually omit and review | Check whether the destination or page should be listed instead. |
You need access to the sitemap output or its generator, a representative list of intended pages, and—if you want Google-specific reporting—a verified Search Console property. A sitemap can be particularly helpful for large or complex sites, new sites with few external links, or sites with specialized media. Google notes that a small, well-linked site may have less need for one, but most sites can benefit from providing one. Your CMS may already generate a sitemap, so inspect its existing output before adding another generator. Google's overview covers these use cases.
Custom diagram
A diagram contrasts a preferred canonical URL included in the sitemap with an alternate URL that redirects or points to another canonical.
The page the site intends users and search engines to treat as canonical.
Canonical annotation and response behavior should support that preference.
List the preferred URL rather than a conflicting alternate.
Search Console answers different questions in different places. The Sitemaps report is for sitemap submission and reported processing. URL Inspection provides indexed-version information for a specific URL and a separate live test. In the indexed data, inspect the reported indexing status and Google-selected canonical. A live test checks whether the current page might be indexable; it does not predict whether Google will select that URL as canonical. Google's URL Inspection documentation makes that distinction explicit.
| Observation | What it tells you | Next check |
|---|---|---|
| Sitemap is reported as processed | Search Console reports processing for the submitted sitemap; this does not establish that every URL is indexed. | Compare the reported URL set with the pages you intended to submit. |
| A URL is associated with a sitemap in URL Inspection | Search Console has sitemap information for that URL from submitted sitemaps or a sitemap listed in robots.txt. | Review the indexed URL status and Google-selected canonical. |
| Live test says the page may be indexable | The current page passed the checks covered by that live test. | Compare with indexed data; the live test cannot predict Google's canonical choice. |
| URL is not on Google | The inspected URL is not currently eligible to appear according to the reported status. | Read the specific reason, then check crawl access, indexing rules, canonical signals, and page state. |
If a submitted URL is missing from Search, do not respond by repeatedly submitting it. First identify which question is unresolved: was the URL discovered, could Google crawl it, is it indexable, and does Google consider another URL canonical? The Search Console URL Inspection tool can show discovery, crawl, and indexing details for an individual URL. Requesting recrawling is a request, not a promise; Google says it can take days to weeks and that repeated requests do not make the same URL get crawled faster. See Ask Google to recrawl your URLs.
Suppose a site publishes a new, indexable article at https://www.example.com/guides/xml-sitemaps/. The example below shows a simple sitemap entry for that preferred URL. Replace the example address with a real, absolute URL from your own site, and provide a last-modified value only when your generator can maintain it accurately. Google says sitemap metadata can include information such as when a page was last updated; avoid using a value that changes mechanically without reflecting a meaningful page update.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/guides/xml-sitemaps/</loc>
<lastmod>2026-11-22</lastmod>
</url>
</urlset>Illustrative XML, not executed against a live site or checked with a sitemap validator. Use your site's actual canonical URL and a last-modified date that reflects a real update. Confirm the generated file is reachable and valid for your sitemap implementation.
Configure the CMS or sitemap generator to emit the preferred URLs that should be considered for Search. Check whether the platform already provides a sitemap before creating a parallel one.
Pass criterionThe output reflects the chosen page set and does not accidentally list alternate URL forms.
Open representative URLs and compare their destination, canonical annotation, and indexability settings with the sitemap entry.
Pass criterionThe listed URL is the intended canonical, and the page does not contradict the inclusion decision.
If you manage the Search Console property, submit the sitemap location through the Sitemaps report. You can also list a sitemap location in robots.txt as supported by the site's setup.
Pass criterionThe sitemap is reachable at the submitted location and Search Console reports its processing status.
Custom diagram
A flow diagram shows intended pages passing through URL selection, canonical and indexability checks, sitemap generation, and Search Console monitoring.
Choose pages that should be considered for Search.
Compare URL, canonical preference, and indexability.
Publish a current list of the chosen URLs.
Review sitemap processing and investigate selected URLs.
A useful verification has two layers: check the sitemap itself, then inspect representative URLs. In Search Console, open the correct property and use the Sitemaps report to submit or review the sitemap. For a specific page, enter its fully qualified URL in the URL Inspection search bar. The indexed report answers what Google currently reports about its indexed version; Test live URL checks the page as it is accessible now. Google documents both entry points and the limits of each in the URL Inspection guide.
For a newly published or materially updated URL, you can request indexing through URL Inspection if you manage the property. For many URLs, Google recommends submitting a sitemap. Neither action guarantees that Google will crawl or include the page. If the live test is acceptable but indexed data still shows an issue, use the reason in the indexed report to decide what to investigate; do not assume that a successful live test changes Google's stored index immediately.
| Symptom | Likely area to investigate | Follow-up check |
|---|---|---|
| Sitemap URL differs from the page's canonical | Generator includes an alternate URL or page signals conflict. | Compare sitemap entry, canonical annotation, and redirects; align them on the intended URL. |
| URL is in the sitemap but cannot be crawled | Access control, robots.txt, authentication, or server response. | Check crawl access and the page response; robots.txt controls crawling but does not reliably prevent indexing. |
| Live test is acceptable but indexed report is not | Current page state differs from stored index data, or another indexing issue remains. | Read the indexed report's reason and Google-selected canonical; a live test cannot predict canonical selection. |
| Sitemap is processed but a page is absent from Search | Processing of the sitemap is not the same as indexing or serving. | Inspect the URL's indexed status, crawl details, canonical, and page-level indexing controls. |
When the page depends on JavaScript, distinguish a sitemap discovery problem from a rendering or content problem. Google processes JavaScript pages through crawling, rendering, and indexing phases; the sitemap does not replace the need for Google to access and understand the page. Use URL Inspection's tested-page details when investigating what Google could load, and compare the result with the actual page. Google's JavaScript SEO basics describes these stages and the role of crawl access.
A sitemap should reflect the current set of pages you want considered for Search. Review it after site migrations, URL-structure changes, changes to canonical rules, and updates to the sitemap generator. For a routine check, compare a sample of sitemap URLs against the live page and canonical signals, then review Search Console's sitemap information and selected URL statuses. Google says there is no need to sign in to Search Console every day; its getting-started guidance suggests checking around monthly or after site changes to let data stabilize.
The practical success criterion is not simply that a sitemap was submitted. It is that the file consistently names the URLs you intend, agrees with the site's canonical and indexability signals, and gives you a useful starting point when investigating discovery. Keep strong internal links as well: Google describes links as a way to discover pages, so a sitemap should complement a crawlable site structure rather than substitute for it. Google's link best practices explain how crawlable links support discovery.
Primary sources and documentation
Every changing search, browser, interface or technical-behavior claim in this guide is tied to a current primary source.
Need help diagnosing and implementing the fix?
Get a technical review of URL discovery, sitemap output, canonical signals, and Search Console evidence.
Explore crawl and indexation engineering
ArticleHow to Fix Largest Contentful Paint (LCP): Diagnose TTFB, Load Delay, Load Time & Render Delay
ArticleRobots.txt vs. Noindex: How to Keep URLs Out of Google Search
ArticleHow to Check Whether Two Pages Link Back With Hreflang
ServiceCrawl Budget & Indexation Audit
ServiceTechnical SEO Services & Audit