Skip to content
SeoWiki

The SEO encyclopedia

Technical SEO

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.

Beginner5 min readUpdated 2026-07-26Reviewed by Lucía Marín

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/about` - `https://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

  1. Generate an XML sitemap using a tool like Screaming Frog or a CMS plugin.
  2. Include only important, indexable URLs (no blocked or redirected pages).
  3. Add metadata: lastmod, changefreq, priority (optional).
  4. Upload the sitemap to your site's root directory (e.g., `https://example.com/sitemap.xml`).
  5. Submit the sitemap URL in Google Search Console.
  6. Reference the sitemap in your `robots.txt` file: `Sitemap: https://example.com/sitemap.xml`.
  7. 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

Reviewed by Lucía Marín, Founding editor.