Glossary · Technical SEO
XML Sitemap: A File That Lists Your Important URLs
An XML sitemap is a list of URLs for crawlers. Keep it clean, current and limited to pages you want indexed.
An XML sitemap is a file that lists the URLs on your site that you want search engines to crawl, often with last modified dates. It helps discovery, especially on large or new sites. Google reads the lastmod value when it is consistently accurate and ignores the priority and changefreq tags.
Key Takeaways
- A sitemap lists indexable URLs and helps discovery.
- Google ignores priority and changefreq, and uses lastmod when it proves accurate.
- One file holds up to 50,000 URLs or 50 MB uncompressed. Use an index file for more.
- Submit it in Search Console and reference it in robots.txt.
A new shop launches with 400 product pages and few links. The sitemap tells Google where every page is.
A sitemap does not force indexing. It makes discovery easier, and it works best when it only lists pages worth indexing.
What goes in, and what stays out
List canonical, indexable URLs that return 200. Leave out redirects, error pages, noindex pages and parameter variants. A sitemap full of junk teaches crawlers to distrust it. Our status codes entry explains which responses to avoid.
| Tag | Used by Google? |
|---|---|
| loc | Yes, required |
| lastmod | Yes, if consistently accurate |
| priority | No |
| changefreq | No |
From Google's sitemap documentation.
Limits and structure
A sitemap file holds up to 50,000 URLs and 50 MB uncompressed. Larger sites use a sitemap index that points to several files, grouped by section so you spot indexing problems per section. The format follows the shared protocol at sitemaps.org.
Keep the file at a stable address, update it when pages change and compress it if size matters.
Split a large sitemap by content type, such as products, categories and articles. When the indexed count for one group lags, you know where to look, and a single oversized file hides that signal.
Does your sitemap list only pages worth indexing?
Send your URL. We check this on your site and reply with the first fixes.
Submitting and checking
- Generate the file from your CMS or a plugin.
- Add the line Sitemap: with the full URL to robots.txt.
- Submit it in Search Console.
- Watch the Page Indexing report for excluded URLs.
- Fix causes, then resubmit if needed.
See robots.txt and indexing for how the pieces fit.
A migration checklist
When a site moves, build the new sitemap from the final URL list, not the old one. Remove redirected addresses. Submit the new file the day the site goes live, and keep the old sitemap available for a few weeks so Google recrawls the old URLs and sees the redirects.
Then compare submitted and indexed counts in Search Console each week until they settle. A gap points to pages blocked, redirected or judged low value.
Mistakes
Listing noindex or redirected URLs. Setting lastmod to today on every build. Forgetting to update after a migration. Treating a sitemap as a way to rank. Referencing http URLs on an https site.
Our technical checklist includes a sitemap review.
FAQ
XML Sitemap: questions people ask
What is an XML sitemap?
A file listing URLs you want search engines to crawl.
Does Google use priority and changefreq?
No. It ignores both tags.
How big can a sitemap be?
50,000 URLs or 50 MB uncompressed per file.
Does a sitemap guarantee indexing?
No. It helps discovery only.
Where do I submit it?
In Search Console, and in robots.txt with a Sitemap line.
Want a technical review you can act on?
Our monthly audit finds the issues that matter first.
How we wrote this page
Chenthil Kumar wrote this entry from the sources listed below and from audit work on client sites, and the Digimarketlabs Editorial Team checked it against our editorial guidelines. Figures carry a source and a date, and where a study shows correlation only, we say so. Search features change often, so check the linked documentation before you act on a detail. Last updated October 23, 2026.
Sources & further reading
Keep reading