XML sitemap
Also called: sitemap.xml, sitemap
Updated November 9, 2026
An XML sitemap is a file in XML format that lists the addresses of the pages on your site you want search engines to find, optionally with the date each one last changed.
Does a small site need one?
Google says you might not need one if your site has about 500 pages or fewer that you want in search, every page is reachable through links from your other pages, and you don't depend on lots of videos or images showing up in search. It suggests one when a site is large, or new with few links from other sites.
A sitemap is a hint, not an order: Google says not every address in it will necessarily be crawled and indexed. Most website builders and blog platforms make one for you, so the job is usually to find it and submit it. If pages are still missing from Google, our guide to why a site is not on Google covers the other causes.
How to submit yours
- Find its address. Try yoursite.com/sitemap.xml in the browser. If nothing opens, look in your website builder's SEO settings, or for a Sitemap line in your robots.txt file.
- In Google Search Console, open Sitemaps (under Indexing), paste the address into Add a new sitemap and click Submit.
- Check the status. Success means Google read it, Has errors or Couldn't fetch means it could not, and Discovered pages is how many addresses it found.
- In the Page indexing report, filter by that sitemap to see how many of its pages are actually indexed.
Mistakes that cause trouble
- Listing addresses you don't want in Google, such as redirects, error pages or test pages. Google says to include the addresses you want to see in results.
- Addresses in the wrong form, such as http when the site runs on https. Google crawls them exactly as listed.
- Fussing over priority and change frequency: Google ignores both. It uses the last modified date only when it is consistently accurate.
Often confused with
- robots.txt
A sitemap lists the pages you want search engines to find. robots.txt tells crawlers which addresses they may not visit. The two meet in one place: robots.txt can point to the sitemap with a Sitemap line.
Frequently asked questions
›Do I need to resubmit my sitemap after adding a page?
No. Once Google has read a sitemap it comes back to it on its own schedule. Resubmit after big changes, or when the report shows it couldn't be fetched.
›Is there a size limit?
Yes: 50,000 addresses or 50 MB uncompressed per file. A bigger site splits its sitemap into several files.
Read more
Sources
- Google Search Central What is a sitemap
- Google Search Central Build and submit a sitemap
- Search Console Help Sitemaps report