XML Sitemap

XML Sitemap

An XML sitemap is a file that lists the important URLs of a website to help search engines discover and crawl them. It acts as a map of the site for crawlers, and while it aids discovery, it is not a direct ranking factor in itself.

An XML sitemap is a behind-the-scenes file, not a page for humans. Its job is to make sure search engines can find the URLs that matter, especially on large sites or pages that are not well linked internally.

What Does an XML Sitemap Do?

A sitemap gives search engines a direct list of the URLs you want crawled, along with optional metadata such as when each page was last modified. Crawlers still find pages by following links, but a sitemap helps when a site is large, new, has pages buried deep in the structure, or has content that is not yet well linked. It improves the odds of discovery; it does not force indexing.

Sitemaps follow a shared standard documented at sitemaps.org, and you submit them to search engines through tools like Google Search Console.

What Should Be in an XML Sitemap?

  • Canonical, indexable URLs you want in search results, using their preferred version.
  • A lastmod date that honestly reflects when the content meaningfully changed.
  • Only pages that return a 200 status, not redirects, errors, or noindexed URLs.
  • For very large sites, multiple sitemaps grouped under a sitemap index file.

Does an XML Sitemap Improve Rankings?

Not directly. A sitemap helps a search engine find and crawl pages, but it does not make them rank higher. Its value is discovery and crawl efficiency, not ranking. On a small, well-linked site a sitemap adds little, while on a large or poorly linked site it can meaningfully help pages get found.

What Are Common Sitemap Mistakes?

  • Including noindexed, redirected, or error URLs, which sends mixed signals to crawlers.
  • Listing non-canonical duplicates instead of the preferred version of each page.
  • Letting the sitemap go stale so it no longer reflects the current URL set.
  • Padding it with thin or low-value pages, which wastes crawl attention rather than focusing it.

Frequently asked questions

What is an XML sitemap used for?+

An XML sitemap lists a website's important URLs to help search engines discover and crawl them, along with optional metadata like last-modified dates. It aids discovery, especially on large or poorly linked sites, but does not force indexing.

Does an XML sitemap help SEO rankings?+

Not directly. A sitemap improves discovery and crawl efficiency but does not make pages rank higher. It is most useful on large or poorly linked sites where pages might otherwise be missed, and adds little on a small, well-linked site.

What should you include in an XML sitemap?+

Include only canonical, indexable URLs that return a 200 status and that you want in search results, with honest last-modified dates. Exclude redirects, errors, noindexed pages, and non-canonical duplicates, and use a sitemap index for very large sites.