How to Submit a Sitemap to Google Search Console

Find your sitemap URL, check that the file is valid, submit it in Search Console, and read what each status means. Includes a worked sitemap and sitemap index.

The BuildVerse team8 min read

A sitemap XML file open in a browser beside the Search Console Sitemaps panel, which shows a Success status.

An XML sitemap lists pages you want Google to discover. This guide is for site owners and developers who want to submit that file and understand the result. Google also accepts other sitemap formats; the examples here use XML.

To submit your sitemap, select your website property in Google Search Console, open Sitemaps, enter its address in Add a new sitemap, and click Submit. You submit the address of a file hosted on your site; you do not upload the file to Google.

By the end you will have checked your sitemap, submitted it, and learned how to investigate its status. Successful submission does not guarantee that Google will index the pages inside it.

Before you start

  • A Google account with owner permissions on your Search Console website property. Verify ownership first if needed; access as a full user is not enough to submit through the Sitemaps report.
  • A public sitemap URL on your live site, plus access to your CMS or hosting settings if the file needs fixing.
  • Optional developer checks: Bash, curl and xmllint. If those tools are unavailable, use the browser and URL Inspection checks below.
  • Documentation checked: 5 December 2026. These instructions were reviewed against public documentation, not a signed-in Search Console session.

Find your sitemap URL

Open https://www.example.com/robots.txt, replacing www.example.com with your host. Look for Sitemap: followed by a full URL. That line is an optional discovery method; you can submit through Search Console without it.

If robots.txt has no sitemap entry, check your CMS documentation. Common candidates include /sitemap.xml and /sitemap_index.xml. WordPress core uses /wp-sitemap.xml with pretty permalinks, or /?sitemap=index without them. Yoast SEO uses /sitemap_index.xml. These are candidates to check, not files every site must have.

Open the candidate URL in a private browser window. For an XML sitemap, inspect the source for urlset or sitemapindex and real loc entries. A styled sitemap can look like a table in the browser; check its source before rejecting it. A login form, challenge page or your homepage is the wrong response.

Platform-generated or hand-written

Use your platform’s generator when available. It avoids maintaining a second page list by hand. Open its output after publishing a page to check that the expected URL appears. If you already have a working sitemap, skip the XML examples and go to the checks and submission steps.

Write the file yourself for a small static site where you control every page. You must keep the URL list current. The optional lastmod value should reflect a significant page update; omit it if you cannot supply an accurate date.

One sitemap or a sitemap index

A single sitemap can contain at most 50,000 URLs and be at most 50MB uncompressed (52,428,800 bytes). Split it if either limit is exceeded. A sitemap index groups multiple sitemap files; it has the same size limit and can list up to 50,000 sitemaps.

Submit one index to cover its child sitemaps. Google allows up to 500 sitemap index submissions per site. Most small sites need only one sitemap or one index.

Worked example: a small sitemap

The domain, paths and dates below are placeholders. Replace every URL with your own preferred canonical page URL. Use the actual significant-update dates or remove the lastmod elements. Save as UTF-8 and publish sitemap.xml at your site root. The query-string example is appropriate only if that URL is a page you want indexed.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
    <lastmod>2026-12-01</lastmod>
  </url>
  <url>
    <loc>https://www.example.com/services/</loc>
    <lastmod>2026-11-20</lastmod>
  </url>
  <url>
    <loc>https://www.example.com/guides/check-prices/?region=in&amp;lang=en</loc>
    <lastmod>2026-10-05</lastmod>
  </url>
</urlset>
Example sitemap.xml with three URLs.

Write a URL’s ampersand as &amp; in XML, and avoid double-escaping an existing &amp;. Google ignores priority and changefreq, so these examples omit both.

Worked example: a sitemap index

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.example.com/sitemap-pages.xml</loc>
    <lastmod>2026-12-01</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemap-guides.xml</loc>
    <lastmod>2026-12-05</lastmod>
  </sitemap>
</sitemapindex>
Example sitemap_index.xml that lists two child sitemaps.

Create and publish both named child files as normal urlset documents; the index alone does not create them. Keep them on the same site and in the same directory as the index or a deeper directory. Google supports a separate cross-site submission setup, but this example uses one host. Do not nest indexes. An index’s optional lastmod describes the child sitemap file’s modification time.

The checks to run before you submit

First check in a private browser window that the URL serves your sitemap without a login. For a Google-side access check, inspect the sitemap URL in Search Console, choose Test live URL, and check Page fetch. Successful means the fetch worked; the sitemap itself does not need to be indexed as a search result.

For additional local checks, run the Bash commands below with your own uncompressed XML sitemap URL. Stop if the first command does not show 200. For a .xml.gz file, use a decompressed copy for the XML and byte-count checks. These commands check basic access and XML syntax, not complete sitemap validity.

(
  set -o pipefail
  SITEMAP_URL='https://www.example.com/sitemap.xml'

  # Expect 200; a redirect needs investigation. Redirects are not followed.
  curl -sS -o /dev/null -w '%{http_code} %{content_type}\n' "$SITEMAP_URL"

  # Continue only after confirming 200 above.
  curl -fsS "$SITEMAP_URL" | xmllint --noout - && echo 'XML is well formed'

  # Counts page entries in a urlset, or child files in an index.
  curl -fsS "$SITEMAP_URL" | xmllint --xpath     'count(/*/*/*[local-name()="loc" and namespace-uri()="http://www.sitemaps.org/schemas/sitemap/0.9"])' -

  # For an uncompressed XML response, compare with 52428800 bytes.
  curl -fsS "$SITEMAP_URL" | wc -c
)
Optional checks for plain XML: HTTP response, XML parsing, loc count, and downloaded byte count.

A 200 response and XML content type are useful clues, but inspect the body too. A server can label a login or error page incorrectly. Well-formed XML can still have the wrong root element or namespace. Compare it with the examples. The loc count is three for the sample sitemap and two for the sample index; the latter counts files, not pages. Check the child sitemaps separately.

How to submit the sitemap

A URL-prefix property covers only its specified protocol, host and path prefix. For example, https://www.example.com/ does not cover http://example.com/. A Domain property covers protocols and subdomains under that domain. Pick the property that includes the actual sitemap location; do not change canonical page URLs just to fit the wrong property.

  1. Open Google Search Console at https://search.google.com/search-console and select the website property that covers your sitemap URL.
  2. Open Sitemaps from the left menu.
  3. Enter the sitemap address in Add a new sitemap. If a URL prefix is already displayed, enter only the remaining path, such as sitemap.xml. If no prefix is displayed, as with a Domain property, enter the full URL, such as https://www.example.com/sitemap.xml.
  4. Click Submit.
  5. Open the sitemap row to review its status and details. Return later if processing has not finished.

What the statuses mean

  • Success: Google fetched and processed the sitemap without errors. This is the target submission result.
  • Has errors, or Sitemap had X errors: Google read at least part of the file. Open the details and fix the reported errors.
  • Couldn't fetch: Google could not retrieve the sitemap. Check access, the submitted address and the server response, then resubmit after fixing the cause.

Discovered - currently not indexed belongs to the Page indexing report. Google knows the URL but has not crawled it yet. Google describes avoiding potential server overload as a typical reason, not proof that your server is overloaded. Crawled - currently not indexed means Google fetched the page but did not index it. Neither status by itself proves the sitemap is broken. Inspect important pages for indexing problems.

Check that it worked

Check the sitemap’s Last read date and Discovered pages count. For an index, that count covers page URLs in its child sitemaps, not just the child files. Then review the Page indexing report, using its sitemap filter where available. An error you understand is still an error to resolve; a growing indexed count is not a promised outcome or deadline.

Paste one important page’s full URL into the inspection bar at the top of Search Console. Read the indexed result: URL is on Google means the URL is eligible to appear, without guaranteeing it will appear for a search. After a fix, use Test live URL to check the current page. A successful live test does not mean it is indexed. You can use Request indexing for an important new or corrected page; inspection and indexing requests have daily limits.

Common mistakes and fixes

  • Invalid sitemap address: check the combined prefix and entered path. Do not paste your homepage URL or duplicate a prefix already shown in the form.
  • The sitemap URL redirects: use the final URL that serves the file directly. The Sitemaps report documents that redirects are not followed for the submitted URL.
  • Access fails: check for a 404, server error, login requirement, firewall challenge or robots.txt rule covering the sitemap. Ask your host to investigate failed Google fetches if it works locally.
  • The file lists redirects, missing pages or duplicates: list your preferred canonical URLs that serve the intended content. A sitemap is only a weak canonical signal, so keep its choices consistent with your page canonical tags.
  • A listed page has noindex or is blocked from crawling: use URL Inspection to investigate. Remove an accidental restriction only if the page should be searchable; leave deliberately excluded pages out of your sitemap.
  • Every lastmod carries the build date: use each page’s significant-update date, or omit lastmod. Changing a copyright year alone is not a significant update.
  • The XML fails to parse: fix the reported syntax, including unescaped ampersands. If it parses but Google reports invalid tags, check the root, namespace and required loc elements.
  • An index succeeds but a child fails: open the index details and inspect the affected child sitemap. Check its URL, accessibility, format and limits.
  • A sitemap is missing from the report: check the selected property. Discovery through robots.txt alone does not create a submitted row; submit it here if you want report tracking.

Limits

  • A sitemap helps discovery. It cannot force crawling, indexing or ranking, and leaving a URL out does not prevent Google finding it through links.
  • Your browser and curl checks only show access from your connection. Google may encounter different access restrictions.
  • For a few urgent page updates, use URL Inspection. For many URLs, maintain the sitemap. Crawl requests do not guarantee inclusion, and repeatedly requesting the same page does not speed it up.

Frequently asked questions

Do I need a sitemap to get indexed?

No. Google learns about a page when it is linked from a known page or listed in a sitemap. A sitemap helps Google find pages it might miss, but it does not guarantee crawling or indexing.

Does Success mean my pages are in Google?

No. It means Google processed the sitemap. Use URL Inspection to check whether an important page is indexed.

Should I submit the index file or each child sitemap?

Submit the index if it already lists all your child sitemaps. You do not need separate submissions for each child. Make sure those child files are published and accessible.

Do I need to resubmit after every update?

No. Google periodically rereads a successfully processed sitemap. Keep it current at the same URL. Resubmission can help after major changes or after fixing a fetch failure; Google gives no fixed reread interval.

Sources

  1. Google Search Central: Build and submit a sitemap (checked 5 Dec 2026)
  2. Google Search Central: Sitemaps overview (checked 5 Dec 2026)
  3. Google Search Central: Large sitemaps (checked 5 Dec 2026)
  4. Google Search Console Help: Sitemaps report (checked 5 Dec 2026)
  5. Google Search Console Help: Page indexing report (checked 5 Dec 2026)
  6. Google Search Console Help: URL Inspection tool (checked 5 Dec 2026)
  7. Sitemaps.org: Sitemap protocol (checked 5 Dec 2026)
  8. Google Search Console Help: Add a website property (checked 5 Dec 2026)
  9. Google Search Central: Canonical URLs (checked 5 Dec 2026)
  10. Google Search Central: Ask Google to recrawl URLs (checked 5 Dec 2026)
  11. WordPress: Sitemap index URL (checked 5 Dec 2026)
  12. Yoast: Submit your sitemap to search engines (checked 5 Dec 2026)
  13. curl: Command-line manual (checked 5 Dec 2026)
  14. libxml2: xmllint manual (checked 5 Dec 2026)

All guides