This guide answers: how to use sitemaps to help search engines find your pages
How to use sitemaps to help search engines find your pages
Learn what an XML sitemap does, how it differs from an HTML sitemap, and how to submit it so Google can find and recrawl your pages more efficiently.
By Hannah Wells, Technical SEO, site performance and online stores
· 6 min read
updated

Short answer
An XML sitemap is a file that lists the URLs you want search engines to know about. It helps Google find and recrawl pages more efficiently, but it does not make Google index them, and it does not improve your rankings. Think of it as a list you hand over, not an instruction Google has to follow.
Key points
- An XML sitemap is a machine-readable file. It is written for crawlers, not for people.
- Google's default way of finding pages is to follow links.
- New sites with few external links, where Google has few paths in.
- Each XML sitemap file can hold a maximum of 50,000 URLs and 50 MB uncompressed.
What an XML sitemap is, and how it differs from an HTML sitemap
An XML sitemap is a machine-readable file. It is written for crawlers, not for people. Each entry is a URL, with optional extra information such as the date the page was last modified.
An HTML sitemap is a different thing. It is a normal page on your site that helps visitors find their way around. This article is only about the XML kind, the one meant for search engines.
The format follows the standard published at sitemaps.org. For basic use, you do not need any proprietary extension. The protocol also offers fields for change frequency and priority, but Google does not use them, as the section below explains.
You can tell Google about your sitemap by submitting it in Search Console. You can also reference it in your robots.txt file. Both are hints. Neither is a command.
Google follows links from page to page
You list the URLs you want crawled
Quality, redirects, noindex, canonicals and status codes all count
How Google uses sitemaps compared with discovery through links
Google’s default way of finding pages is to follow links. It reaches a page, reads the links on it, and moves on to the pages they point to. The result is a map of your site built from its own navigation.
A sitemap works alongside that process. It says: here are the URLs I would like crawled. Google then treats them like any other URL it knows about. It checks them, and it still applies its usual judgement.
The role of a sitemap is to improve the efficiency of a crawl that already works through links. It helps search engines discover new or updated pages faster on sites that already have a strong link structure. It does not replace that structure.
Take a new page with no internal links pointing to it. Without a sitemap, Google may take a very long time to find it, possibly months. With a sitemap, the URL is at least on Google’s radar. But being on the radar is not the same as being indexed.
That is the first misconception to drop: submitting a sitemap does not guarantee quick indexing. Google crawls and indexes based on content quality, redirects, noindex tags, canonicals and HTTP status codes. A URL in your sitemap is not indexed automatically for that reason alone.
When a sitemap helps, and when it does not
A sitemap is most useful in a few situations:
- New sites with few external links, where Google has few paths in.
- Deep site structures, where some pages sit far from the homepage or have no internal links at all (orphaned pages).
- Sites with content that changes often, where you want updated pages found sooner.
- Sites with crawl problems caused by broken internal navigation. A sitemap can help there, but fixing the navigation is the better answer.
It adds little in other cases. If every page is already linked from the homepage, or your pages are already well linked, Google has little need for extra help. A small site of fewer than 100 pages with no orphans is a typical example.
If a site relies only on its sitemap to be discovered, that is not enough. Good internal linking comes first. The sitemap supports it.
Consider an e-commerce site with thousands of product variants. A sitemap suggests the variant URLs to Google. But if quality and freshness signals are equal across them, only the best variants will tend to be indexed. The sitemap raises the suggestion, not the outcome.
Technical limits you need to know
Each XML sitemap file can hold a maximum of 50,000 URLs and 50 MB uncompressed. Larger sites go beyond one file by using a sitemap index, which is a file that lists individual sitemaps.
To submit, open Search Console, go to Indexing, then Sitemaps. Paste the sitemap URL and click Submit. That is all the submission involves.
What Google reads and what it ignores
Google reads the loc tag, which holds the URL. It also reads the lastmod tag, the date of the last modification, if you provide it. The date only helps if it is accurate. If Google finds it unreliable, it may ignore it.
Google ignores the priority tag. All URLs are treated equally. It also ignores changefreq, which has no effect on how often Google crawls a page. This is stated in Google Search Central documentation.
The practical lesson is simple. Do not spend time tuning priority values. Spend it on making sure the URLs are correct and the modification dates are truthful.
Building, updating and monitoring a sitemap
A sitemap is only as good as its upkeep. Keep it fresh. Remove URLs that have been deleted or that now return a 404. Use accurate modification dates, and change a date only when the page has really changed.
For monitoring, check the Indexing report in Search Console. Compare the URLs in your sitemap with the pages that are actually indexed. They often do not match, and that is normal. A gap does not mean something is broken. It means Google chose not to index some of the URLs you suggested, which is a prompt to look at their quality, canonicals or status codes.
If a sitemap grows past 40,000 URLs, consider splitting it, by category or by date, to keep things efficient. A sitemap index can then point to separate files, for example one for products, one for blog posts and one for standard pages. This is optional, but it is cleaner on large sites.
Common misconceptions, and what to do instead
“Submitting a sitemap is required for SEO.” It is not. Good internal linking is what matters most. A sitemap is helpful, not required, and for small, well-linked sites it adds little.
“Sitemaps improve rankings.” They do not. They help Google find pages. Ranking is a separate matter, decided by other signals.
“My sitemap must be perfect or Google will penalise me.” Errors in a sitemap do not cause penalties. Google simply ignores the bad rows. You should still fix them, because a clean file is more useful, but there is no punishment waiting.
“I should mark everything as priority 1 and changefreq daily.” Google ignores both fields, so this achieves nothing. Leave them out or leave them alone.
The shorter version: link your pages well, list the URLs you want crawled, keep the list accurate, and then look at what Google actually indexes.


