An XML sitemap is a machine-readable list of the URLs on your site that you want indexed. Search engines use it as a map, alongside the links they find by crawling.
What belongs in it
- every page you want to rank: services, locations, products, articles
- only the canonical version of each URL
- only pages that return a 200 status, not redirects or 404s
Leave out thank-you pages, internal search results, login areas and anything marked noindex.
How to submit it
- Make sure it is reachable, usually at
/sitemap.xmlor/sitemap-index.xml. - Reference it in robots.txt.
- Submit it in Google Search Console and Bing Webmaster Tools.
Search Console then reports how many submitted URLs are indexed and why the rest are not, which is one of the most useful technical SEO diagnostics available.
Does a small site need one?
A small, well-linked site will be crawled fine without one, but a sitemap costs nothing and makes problems visible. Most modern platforms, including Shopify, WordPress and Astro, generate it automatically.
Related terms
robots.txt
robots.txt is a small text file at the root of your site that tells search engine and AI crawlers which areas they may or may not crawl.
Google Search Console
Google Search Console is Google's free tool showing how your site performs in search: queries, clicks, indexing problems and Core Web Vitals.
Canonical URL
A canonical URL tells search engines which version of a page is the main one when the same content can be reached at several different web addresses.
Internal linking
Internal linking means linking between pages on your own website. It helps visitors find related content and shows Google which pages matter most.