A sitemap is a list of the addresses on a site that you want search engines to know about. Submitting one to Google takes about a minute. Getting the sitemap right beforehand takes a little longer, and it is the part that decides whether the submission helps.
This post covers both: what belongs in a sitemap under Google’s rules, the two ways to tell Google where it is, and how to read the report Search Console gives back.
What a sitemap does and does not do
A sitemap helps Google find pages, especially on new sites, large sites and sites where some pages have few links pointing to them. It does not guarantee that every listed page will be crawled or indexed. Google still decides what to index based on the pages themselves. A sitemap is a map, not a request that has to be granted.
Does every site need one?
Not strictly. A small site whose pages are all linked from its menu and from each other can be crawled completely without a sitemap. But a sitemap costs almost nothing, most site builders create one automatically, and it is the only way to see in Search Console how many of the pages you care about Google has found. For a new site, a site with pages that few others link to, or a site that changes often, it is worth having.
Build it to Google’s rules
Google’s guide to building a sitemap sets out a short list of requirements:
| Rule | What it means in practice |
|---|---|
| Fully-qualified, absolute URLs | https://www.example.com/page/, never /page/ |
| UTF-8 encoding, values entity-escaped | An address with & must be written with & |
| At most 50,000 URLs or 50 MB per file | Larger sites split the list and use a sitemap index |
| priority and changefreq are ignored | Leave them out |
| lastmod used when reliably accurate | Only the date of a real, significant change |
The XML sitemap generator builds a file from a list of URLs to these rules: it rejects relative addresses, removes duplicates, escapes special characters, warns about mixed hosts and the 50,000 limit, and writes a lastmod only when you give a valid date.
Sitemaps your platform already makes
Before building one by hand, check whether the site already has one. Common places to look:
- WordPress has produced a basic sitemap since version 5.5, usually at /wp-sitemap.xml, and SEO plugins replace it with their own, often at /sitemap_index.xml.
- Hosted shop and site builders generally publish one at /sitemap.xml automatically.
- Static site generators usually create one through a plugin at build time.
If one exists, open it and check it against the rules above: absolute addresses, no redirects, no noindex pages. A generated sitemap that includes tag archives, author pages or test pages you never meant to publish is a common find, and the fix is usually a setting rather than a new file.
What to list, and what to leave out
List the canonical address of every page you want to appear in search, exactly as you want it indexed. Leave out:
- Redirects. List the destination, not the address that redirects.
- Pages marked noindex. Asking Google to find a page and then not index it sends mixed signals.
- Duplicates. One version of each page, with or without the trailing slash as the site uses it.
- Error pages and thin utility pages such as internal search results or empty tag archives.
- Pages blocked in robots.txt. Google cannot crawl them anyway.
Two ways to tell Google where it is
Search Console. Open the property for the site, go to Sitemaps in the Indexing section, type the sitemap’s address (often sitemap.xml or sitemap-index.xml) and submit. This is the only method that gives you a report back.
robots.txt. Add a line with the full address of the sitemap:
Sitemap: https://www.example.com/sitemap.xml
Any crawler that reads robots.txt can then find it, Google included, without a separate submission. The robots.txt generator adds the line for you. Doing both is common and harmless: robots.txt tells every crawler, and Search Console gives you the report.
Reading the Sitemaps report
After submission, Search Console shows a row for the sitemap with a status, the date it was last read and the number of URLs discovered. Three situations come up most:
- Success. Google read the file. The discovered count is how many addresses it found in it, not how many are indexed.
- Couldn’t fetch. Google could not download the file. Check that the address opens in a browser, that it is not blocked in robots.txt, and that the server returns it without a login.
- Has errors. The file was read but something in it is wrong, such as an invalid address or bad XML. Open the row for details.
For what happened to the listed pages afterwards, use the Pages report in Search Console, filtered by sitemap. It separates indexed pages from those that were discovered or crawled and not indexed, with a reason for each group.
How long until Google reads it
There is no fixed delay. Search Console usually shows the first read within a few days of submission, sometimes sooner. The report shows the date of the last read, so there is no need to resubmit an unchanged sitemap to prompt it; Google comes back to sitemaps it knows about. Resubmit when the address of the sitemap changes or after a large change to the site, such as a migration.
Common errors and their fixes
- Relative addresses.
/page/instead ofhttps://www.example.com/page/. Every address must be complete. - The wrong host. http:// addresses on an https:// site, or addresses without www on a site that uses it. List the version the site actually serves.
- Unescaped characters. An & in an address breaks the XML unless it is written as &.
- A sitemap that is an HTML page. Some setups return the home page, or an error page, at the sitemap’s address. Open it in a browser and check that it is XML.
- Blocked by robots.txt. A Disallow rule covering the sitemap’s own address stops Google fetching it.
One sitemap or several
A single file is fine for most sites. Splitting it is worth doing for two reasons beyond the size limit: to see in Search Console how each kind of page is doing, with separate sitemaps for products, categories and articles, and to keep a fast-changing section apart from pages that rarely change. Each sitemap then gets its own row in the report, and a problem in one section stands out instead of being lost in a single total.
Sitemap index files
A site with more than 50,000 URLs, or several kinds of content, often uses a sitemap index: a small file that lists other sitemaps. Submit the index, and Google reads the sitemaps it lists. Many site builders produce one automatically, named sitemap-index.xml or sitemap_index.xml.
Keeping it current
A sitemap that lists pages that no longer exist, or misses new ones, does less than it could. If your site builder generates the sitemap, check once that it excludes noindex pages and redirects. If you build it by hand, rebuild it whenever pages are added, removed or moved, and resubmit. After a URL change, the sitemap should list only the new addresses; the order of work is in how to change a URL without losing SEO.
Image and video sitemaps
The standard sitemap lists pages. Google also reads extensions that list the images and videos on those pages, which can help them be found in image and video search, especially when they are loaded in ways a crawler might miss. For most small sites the pages’ own HTML is enough, and the extensions are worth adding only when images or videos are themselves something people search for, such as a photographer’s portfolio or a library of product videos.
A checklist before you submit
- The file opens in a browser and shows XML, not a web page.
- Every address is complete, on the host and protocol the site really uses.
- No redirects, no noindex pages, no duplicates, no pages blocked in robots.txt.
- lastmod appears only where it is the real date of a significant change.
- The file is under 50,000 addresses and 50 MB, or it is split under an index.
- robots.txt carries a Sitemap line with the full address.
When pages still are not indexed
If the sitemap reads successfully and important pages still do not appear, the sitemap is rarely the problem. Check that each page is not blocked in robots.txt (the robots.txt tester answers that in seconds), does not carry a noindex tag, returns a 200 status rather than a redirect, and has enough unique content to be worth indexing. Use URL Inspection in Search Console on a single address to see what Google last saw there, and request indexing for a page that matters once it is fixed.
Sources, read November 14, 2026:
- Google Search Central, Build and submit a sitemap: absolute URLs, UTF-8 and entity escaping, the 50,000-URL and 50 MB limits, ignored priority and changefreq, lastmod when accurate, and submission through Search Console or robots.txt.