Skip to the content

Contact usFree tools · No signup · Files stay on your device

SEO & Marketing

How to submit a sitemap to Google Search Console

How to submit a sitemap to Google Search Console

Submitting a sitemap tells Google where your list of pages lives, so it can find new articles, products and updates faster than by following links alone. The process takes a few minutes: make the file, upload it, check it, then add its address in Google Search Console. This post walks through each step and explains what the status messages mean.

If you do not have a sitemap yet, create one first with our free Sitemap Generator, which turns a list of URLs into a valid sitemap.xml.

Before you submit: four quick checks

Fix problems before Google sees them; it saves days of waiting.

  1. The file is on your site. Upload sitemap.xml to the root folder, then open https://yoursite.com/sitemap.xml in a browser. You should see XML text, not a 404 error or a web page.
  2. The XML is valid. Open the XML Sitemap Validator, keep "Fetch from URL" selected, enter the address and press "Validate". Aim for "Valid sitemap. No problems found." or only a few warnings. Errors such as a wrong date format or a raw & in a URL should be fixed first.
  3. The URLs are the real ones. Every address should use the same protocol and host as your live site, for example https://www.yoursite.com/. Mixing http and https, or www and non-www, is a common cause of warnings.
  4. Nothing in it is blocked. If robots.txt disallows a URL, listing it in the sitemap sends mixed signals. Test a few important pages in the Robots.txt Tester.

Submit the sitemap in Search Console

  1. Go to Google Search Console and select your property. If you have not added your site yet, add and verify it first.
  2. In the left menu, under Indexing, click Sitemaps.
  3. In the "Add a new sitemap" box, enter the sitemap address.
  4. Click Submit.

What you type depends on the kind of property:

Property type What to enter
Domain property (for example example.com) The full address: https://www.example.com/sitemap.xml
URL-prefix property (for example https://www.example.com/) Only the end part: sitemap.xml

After you submit, the address appears in the "Submitted sitemaps" table with the date it was submitted, when Google last read it, a status and the number of pages it discovered.

What the statuses mean

  • Success: Google fetched and read the file. The "Discovered pages" count shows how many URLs it found. This is not the same as indexed pages; see the Pages report for that.
  • Has errors: Google read the file but found problems, such as an invalid date or an unreachable URL. Click the sitemap row to see which lines. Run the file through the validator and fix them.
  • Couldn't fetch: Google could not download the file at all. The causes and fixes are in sitemap "couldn't fetch" in Search Console.

Processing is not instant. A new sitemap can sit at a pending status for a while, so check again after a day or two before you assume something is wrong.

Sitemap index files

A single sitemap can hold at most 50,000 URLs and 50 MB uncompressed. Bigger sites use several sitemap files and one index file that lists them. Submit only the index. Google follows it to every child sitemap, and the Sitemaps page then shows each child under it. The Sitemap Generator creates this structure for you when your list exceeds the limit: sitemap.xml becomes the index, and the parts are named sitemap-1.xml, sitemap-2.xml and so on. Upload all of them to the folder you gave in "Where the sitemap files will be uploaded".

Add the sitemap to robots.txt as well

Google is not the only search engine. A line in robots.txt tells every crawler that reads the file where your sitemap is:

Sitemap: https://www.example.com/sitemap.xml

Use the full address, starting with https://, and place the line anywhere in the file. The Robots.txt Generator has a "Sitemap URLs" box that writes it for you, and checks that the address looks complete. Bing and others will then find the sitemap without a separate submission, although you can also submit it in their own webmaster tools.

The old way of "pinging" Google with a sitemap address no longer works, so Search Console and the robots.txt line are the two methods to rely on.

After submitting: keep it healthy

  • Keep the sitemap at the same address. You do not need to resubmit when you add pages; Google rereads it from time to time.
  • Update the file whenever you publish, delete or move pages. If your CMS or plugin generates it automatically, check that it does.
  • Remove URLs that now redirect, return errors or are marked noindex. A sitemap should contain only pages you want in search.
  • Use a truthful lastmod date or none. Wrong dates teach Google to ignore the field.
  • Check the Pages report in Search Console for pages that are discovered but not indexed. A sitemap shows Google the page; it does not force it into search.

Common mistakes

  • Submitting a sitemap for the wrong property, such as the non-www site when your pages live on www.
  • Entering the full address in a URL-prefix property, or only sitemap.xml in a Domain property.
  • Submitting each child sitemap and the index. One index is enough.
  • Leaving staging addresses such as https://test.example.com/ inside the file.
  • Uploading the file to a sub-folder, then listing pages outside that folder. A sitemap normally covers only its own folder and below, unless it is also referenced in robots.txt or submitted in Search Console.

Quick checklist

  • Upload the file and open it in a browser.
  • Validate it with the XML Sitemap Validator.
  • Submit it under Indexing, then Sitemaps.
  • Add the same address to robots.txt.
  • Check the status after a day or two.

Frequently asked questions

Where do I enter the sitemap in Search Console?
Open your property, choose Sitemaps in the left menu, type the sitemap address in the Add a new sitemap box and press Submit. For a URL-prefix property you type only the part after the site address, such as sitemap.xml.
Do I need to resubmit the sitemap after I add pages?
No. Google rereads a submitted sitemap on its own from time to time. Just keep the file at the same address and keep it up to date.
Should I submit the sitemap index or each child sitemap?
Submit only the index file. Google follows it to every child sitemap listed inside.
Does submitting a sitemap guarantee my pages get indexed?
No. It helps Google discover URLs, but Google still decides which pages to index based on quality, duplicates and other signals.
Do I also need to put the sitemap in robots.txt?
It is optional for Google if you submit it in Search Console, but a Sitemap line in robots.txt lets other search engines such as Bing find it without a separate submission.
Found this useful? Share it

Tools in this guide

Main tool

Sitemap Generator

Paste your page URLs and get a standards-compliant sitemap.xml in seconds.

Open tool

XML Sitemap Validator

Check that your sitemap follows the sitemaps.org protocol before you submit it to Google.

Open tool

Robots.txt Generator

Build a robots.txt file from presets and simple choices: block AI crawlers, keep admin and cart pages out of search, add your sitemap,.

Open tool

Robots.txt Tester

Check whether a crawler is allowed to visit a URL.

Open tool

Back to all guides & blog