What is an XML sitemap?
An XML sitemap is a machine-readable file that lists the important URLs of a website and helps search engines discover and crawl its pages. It is a hint to the search engine, not a guarantee that a page will be indexed.

XML sitemap: definition and meaning
An XML sitemap is a file in XML format, usually located at /sitemap.xml, that lists the URLs of a website that should appear in search engines. It follows the sitemaps.org standard and is read by Google, Bing, and other search engines. Optionally, each URL can include the date of its last change as well as details about images, videos, or language versions.
Important: a sitemap is a hint, not a command. It helps search engines discover new or hard-to-reach pages, for example on large online stores, young websites, or pages with few internal links. Whether a URL is actually indexed is decided by the search engine based on quality and relevance.
How the sitemap works
The file contains one entry per page with the full URL and, ideally, the date of the last substantive change (lastmod). A single sitemap may contain at most 50,000 URLs or 50 MB (uncompressed). Larger websites split it up and combine the parts in a sitemap index file.
The sitemap is made known through Google Search Console, Bing Webmaster Tools, or a Sitemap line in the robots.txt file. Google does not evaluate the priority and changefreq fields, and it uses lastmod only if the dates are reliably accurate. Only the URL itself is mandatory; everything else is optional.
Real-world example: a sitemap for an online store
A specialist garden supplies retailer runs a store with around 12,000 product pages, and new items take weeks to show up on Google. The store system now automatically generates one sitemap each for products, categories, and guide articles, plus an index file. The lastmod date changes only when content really changes.
Filter pages, shopping cart, search results, and redirects are deliberately left out, so the sitemap contains only pages with search potential. In Search Console, the retailer can see for each sitemap how many URLs were found and indexed, and spots problems such as excluded or faulty pages early.
What belongs in the sitemap—and common mistakes
A good sitemap contains only pages you actually want to see in search: reachable, indexable, and canonical to themselves. That also makes it a diagnostic tool. If error pages or redirects show up in it, something is wrong with the website, and search engines lose trust in the file.
- Include: indexable pages with status code 200
- Leave out: redirects, 404 pages, noindex pages
- Leave out: filter, sorting, and search result URLs
- Update lastmod only for substantive changes
- List the sitemap URL in the robots.txt file
Implementation: how to set up the sitemap
WordPress (since version 5.5), Shopify, and Shopware generate sitemaps automatically. For custom-built websites, the sitemap should be generated from the database so it never goes stale. Nano Concepts sets up sitemaps as part of technical SEO audits and relaunches and checks them in Search Console after launch.
Frequently asked questions about XML sitemap
It is not mandatory, but it is recommended. On small, well-linked websites Google usually finds the pages without one. On large online stores, new domains, or sites with many subpages, a sitemap speeds up discovery and makes monitoring in Search Console easier.
Usually at yourdomain.com/sitemap.xml or /sitemap_index.xml, and on WordPress at /wp-sitemap.xml. The surest way is the robots.txt file (the “Sitemap:” line) or the Sitemaps report in Google Search Console.
An XML sitemap is made for search engines, not for visitors. An HTML sitemap is an ordinary page with links that helps visitors find their way around and strengthens internal linking along the way.
At most 50,000 URLs or 50 MB uncompressed. Additional URLs go into more sitemaps, which a sitemap index file combines. For large online stores, splitting the sitemap by section makes sense.
Matching services

Technical SEO Audit
A review of your website's crawling, indexing, structure and load time – with a prioritized action plan and implementation.
Learn more
Technical SEO & Relaunch
Relaunch and technical SEO with a redirect plan, load-time optimization and monitoring – together with LOMA DESIGN.
Learn more
E-Commerce & Online Stores
Online stores with Shopify, WooCommerce or Shopware – including payment, shipping and integration with your inventory management.
Learn moreRelated terms
Relevant for these industries
Related magazine articles

How to Configure GA4: Events, Key Events and Rollout
Google Analytics 4 only delivers reliable numbers when events, key events and consent are planned. Here is how to build a tracking plan that rolls out cleanly.
Read more
Improving Core Web Vitals: LCP, INP and CLS in Practice
Fast pages win over visitors and search engines. How to measure LCP, INP and CLS with field data, fix the typical causes and keep the numbers under control with budgets.
Read more
BFSG Accessibility: Obligations for Websites, Stores and Apps
Germany’s Accessibility Strengthening Act (BFSG) has applied since June 28, 2025. Who is affected, what online stores, booking flows and apps must deliver and how to assess properly whether the law applies to you.
Read more