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.
- The file is on your site. Upload
sitemap.xmlto the root folder, then openhttps://yoursite.com/sitemap.xmlin a browser. You should see XML text, not a 404 error or a web page. - 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. - 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/. Mixinghttpandhttps, orwwwand non-www, is a common cause of warnings. - 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
- Go to Google Search Console and select your property. If you have not added your site yet, add and verify it first.
- In the left menu, under Indexing, click Sitemaps.
- In the "Add a new sitemap" box, enter the sitemap address.
- 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
lastmoddate 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-
wwwsite when your pages live onwww. - Entering the full address in a URL-prefix property, or only
sitemap.xmlin 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.



