XML sitemap
An XML sitemap is a file listing a store's important URLs so search engines can discover and crawl them faster.

What is an XML sitemap?
An XML sitemap is a structured file that lists the URLs you want search engines to know about — typically products, collections, pages, and blog posts. Each entry can include metadata such as <lastmod> (last modified), which gives Google a hint about when a page last changed. On larger sites sitemap.xml is often a sitemap index that points to several child sitemaps. Keep in mind that a sitemap helps search engines find pages — it does not guarantee they get indexed.
Why does an XML sitemap matter?
In an online store with hundreds or thousands of URLs, Google cannot always discover new or changed pages through internal links alone. A sitemap hands the crawler a direct list of the important addresses, steering crawl budget toward your real selling pages instead of parameters and dead ends. That gets new products and updated collections visible in search faster and supports your organic traffic.
Common use cases
- New store or migration. Submit the sitemap in Google Search Console so Google discovers the full catalog quickly.
- Large catalog changes. When you add many products or launch new collections.
- Debugging indexing. Compare submitted vs. indexed URL counts to spot problems.
- Cleanup. Make sure deleted products do not leave dead URLs behind that return 404 errors.
Shopify perspective
Shopify automatically generates /sitemap.xml as an index with child sitemaps for products, collections, pages, and blogs — you cannot edit the file manually or add your own URLs on standard plans. To keep a page out of the sitemap you must unpublish the resource or set the seo.hidden metafield to 1; a noindex rule in robots.txt.liquid does not remove it from the sitemap, because Shopify builds the file from its database. Always submit sitemap.xml in Search Console and periodically check for URLs that no longer exist.