What Is XML Sitemap?
An XML sitemap is a file listing the pages a site owner wants search engines to crawl, together with when each was last changed. It helps discovery, particularly on large or poorly linked sites. It is not a ranking factor and does not guarantee that any listed page will be indexed.
Key facts
- A sitemap aids discovery. It does not force indexing.
- Only include pages you want indexed: no redirects, no noindex pages, no 404s.
- A single sitemap file holds up to 50,000 URLs and 50MB uncompressed.
- Submitting it in Search Console lets you see how many of its URLs were indexed.
What belongs in a sitemap?
The rule is simple: every URL in the sitemap should be one you would be happy to see in search results.
- Canonical URLs only, returning a 200 status.
- No redirected URLs, no noindex pages, no blocked paths.
- Accurate lastmod dates, or none at all. Dates that always say today are ignored.
- A reference to the sitemap in robots.txt, plus submission in Search Console.
What a sitemap will not fix
A sitemap does not make a thin page worth indexing, and it does not compensate for pages that nothing links to. If pages are listed in a sitemap but never fetched, the problem is usually the pages rather than the file.
It is still worth getting right: the indexed-versus-submitted count in Search Console is one of the quickest ways to see how much of a large site is actually making it into search.
XML Sitemap FAQs
Do small websites need a sitemap?
A small, well-linked site will usually be crawled fully without one, but there is no downside to having it, and most platforms generate one automatically. The reporting it enables in Search Console is reason enough.
How often should a sitemap be updated?
Automatically, whenever content changes. Most content management systems and site generators do this. A sitemap that has not changed in a year on an active site is a sign something is broken.
Why are my sitemap pages not indexed?
Usually quality rather than mechanics: the pages are thin, near-duplicates, or add little to what is already indexed. Check the reasons in the Pages report in Search Console before assuming the sitemap is at fault.
Next in the glossary
Crawling
Crawling is the process by which a search engine discovers and fetches the pages on a website. A crawler follows links...
Indexing
Indexing is the step where a search engine stores and organises a page it has crawled, so that the page can be returned...
robots.txt
robots.txt is a plain-text file at the root of a website that tells crawlers which paths they may and may not request....
Technical SEO
Technical SEO is the work that lets search engines and AI crawlers reach, read and render a website reliably. It covers...