Sitemap
A sitemap is a file that lists a website's important pages and related resources so search engines can crawl the site more efficiently.

Key takeaways
- A sitemap helps search engines discover and crawl your pages.
- It is not a guarantee of indexing, only a hint.
- Include only important, indexable URLs.
- Submit via Google Search Console and reference in robots.txt.
- Update after major site changes.
Sitemaps are a foundational tool for SEO, helping search engines find and understand your site's content.
Example
A typical sitemap.xml file includes URLs like:
https://example.com/https://example.com/abouthttps://example.com/products
Each entry can include metadata such as:
<lastmod>— last modified date<changefreq>— how often the page changes<priority>— relative importance (0.0 to 1.0)
When should I use this?
Use a sitemap when:
- Your site is large (hundreds or thousands of pages).
- Your site is new and has few external links.
- You have pages that are not well linked internally.
- You want to provide metadata like lastmod or alternate language versions.
- You have rich media content (videos, images) that search engines should index.
What it is not
- Not a ranking factor — sitemaps do not directly improve rankings.
- Not a guarantee of indexing — search engines may ignore sitemap URLs.
- Not a replacement for internal linking — good site structure is still essential.
- Not for every URL — exclude blocked, redirected, or non-canonical pages.
Quick start
- Generate an XML sitemap using a tool like Screaming Frog or a CMS plugin.
- Include only important, indexable URLs (no blocked or redirected pages).
- Add metadata: lastmod, changefreq, priority (optional).
- Upload the sitemap to your site's root directory (e.g.,
https://example.com/sitemap.xml). - Submit the sitemap URL in Google Search Console.
- Reference the sitemap in your
robots.txtfile:Sitemap: https://example.com/sitemap.xml. - Monitor the sitemap report in Search Console for errors.
Common mistakes
- Treating a sitemap as a direct indexing command — it is only a discovery hint.
- Including low-value, blocked, redirected, or non-canonical URLs — this wastes crawl budget.
- Forgetting to update the sitemap after major content or URL changes.
- Submitting the sitemap but never checking Search Console for errors or coverage issues.
Next step
FAQ
Does a sitemap guarantee indexing?
No. A sitemap is a hint for discovery, not a command to index.
Should I include every page in my sitemap?
No. Include only important, indexable pages. Exclude blocked, redirected, or low-value URLs.
How often should I update my sitemap?
Update after major content or URL changes, and resubmit via Google Search Console.
Related topics
Sources
- Google Search Central: What Is a Sitemap — Primary source for the SEO definition and how Google uses sitemaps.
- Google Search Central: Sitemaps overview (localized version) — Confirms Google's guidance on lastmod and alternate language URLs.
- Google Search Central: Sitemaps documentation — Additional Google documentation reinforcing the same core definition and use cases.
Reviewed by Lucía Marín, Founding editor.