GrowthPedia

Sitemap

A sitemap is a file that lists a website's important pages and resources so search engines can find and crawl them more efficiently.

Level: BeginnerRead: 5 minUpdated: 27 Jul 2026By Vera Lindqvist

Key facts

  • A sitemap is a file that lists URLs on a site, along with optional metadata like last modified dates and alternate language versions.
  • Google defines a sitemap as a file that provides information about pages, videos, and other files on a site, plus their relationships.
  • A sitemap helps search engines crawl a site more efficiently, but it is not a guarantee of indexing.
  • XML sitemaps are the most common SEO format; HTML sitemaps are mainly for users and navigation.
  • Sitemaps can help search engines discover URLs that are not well connected through internal links.
  • A sitemap should focus on URLs you want crawled and indexed, not every possible URL on the site.

Also called

XML sitemap, sitemap.xml, site map

Use it for

helping search engines discover and crawl pages

Applies to

Google / Bing / all search engines

What a Sitemap Does for Search Engines

A sitemap acts as a roadmap for search engine crawlers. It tells them which pages exist on your site and when they were last updated. This is especially useful for large sites, new sites, or pages that are hard to find through internal links alone.

Search engines like Google use sitemaps to discover URLs they might otherwise miss. For example, a page deep in your site structure or one with few incoming links can still be found via a sitemap. The sitemap also provides metadata, such as the date a page was last modified or alternate language versions.

However, submitting a sitemap does not force Google to crawl or index every URL listed. Google still decides what to crawl and index based on its own algorithms. The sitemap is a hint, not a command.

  • Provides a list of URLs that may not be discoverable via internal links alone.
  • Gives metadata like last modified dates to help search engines decide when to recrawl.
  • Can include alternate language versions for hreflang to support multilingual sites.

XML Sitemaps vs HTML Sitemaps

The most common format for SEO is the XML sitemap. It is a structured file that search engines can read easily. An XML sitemap typically contains a list of URLs, each with optional tags like <lastmod>, <changefreq>, and <priority>.

An HTML sitemap is a page on your website that lists links for human visitors. It helps users navigate your site and can also help search engines discover pages, but it is not a substitute for an XML sitemap. HTML sitemaps are mainly for usability.

For SEO purposes, you should always create an XML sitemap. You can also create separate sitemaps for images, videos, or news articles if your site has a lot of that content. Google supports these extensions. For example, an e-commerce site might have an HTML sitemap listing all categories for users, while the XML sitemap includes all product pages for crawlers. If your site is very large, you can split the XML sitemap into multiple files and use a sitemap index file to list them all.

How to Create a Sitemap

You can create a sitemap manually, but most people use a tool. Many content management systems (CMS) like WordPress have plugins that generate sitemaps automatically. For example, Yoast SEO or Rank Math can create and update your sitemap with each new page.

If you use a static site or a custom CMS, you can use a sitemap generator. These tools crawl your site and produce an XML file. After generating the file, you should validate it to ensure it follows the correct format. Google Search Console can help you check for errors.

Once your sitemap is ready, you need to submit it to search engines. The easiest way is through the sitemap report in Google Search Console. You can also reference the sitemap in your what robots.txt means file, so search engines can find it automatically.

What to Include in a Sitemap

A sitemap should only include URLs you want search engines to crawl and index. Do not include low-value pages, such as login pages, tag pages, or duplicate content. Also avoid URLs that are blocked by robots.txt or that redirect to other pages.

You can include metadata for each URL, such as the last modified date. This helps search engines understand when a page has changed. For multilingual sites, you can use hreflang annotations in the sitemap to indicate alternate language versions. This is important for Canonical URL management.

A sitemap can have up to 50,000 URLs and a file size of 50 MB (uncompressed). If your site has more URLs, you can create multiple sitemap files and list them in a sitemap index file. Google recommends keeping sitemaps focused on quality URLs, not quantity.

Common Mistakes with Sitemaps

Many SEO practitioners make mistakes when creating or maintaining sitemaps. Here are four common errors and their consequences.

First, treating a sitemap as a direct indexing command. A sitemap is a discovery hint, not a guarantee. If you include a URL, Google may still choose not to crawl or index it. Second, including low-value, blocked, redirected, or non-canonical URLs. This wastes crawl budget and can confuse search engines about which pages are important. For instance, if you include a page that is blocked by robots.txt, Google will ignore it, and you waste the opportunity to guide crawlers to accessible pages.

Third, forgetting to update the sitemap after major content or URL changes. An outdated sitemap can lead to broken links or missed indexing opportunities. Fourth, submitting the sitemap but never checking Search Console for errors or coverage issues. This means you might not know if your sitemap has problems. Ideally, you should automate sitemap updates so they reflect the latest site structure.

  • Treating a sitemap as a direct indexing command instead of a discovery and crawling hint.
  • Including low-value, blocked, redirected, or non-canonical URLs in the sitemap.
  • Forgetting to update the sitemap after major content or URL changes.
  • Submitting the sitemap but never checking Search Console for errors or coverage issues.

Sitemap Best Practices for SEO

To get the most out of your sitemap, follow these best practices. First, keep your sitemap focused on canonical URLs. Avoid including duplicate versions of pages. Second, update your sitemap whenever you add, remove, or change important pages. Many CMS plugins do this automatically.

Third, use the sitemap report in Google Search Console to monitor your sitemap's status. Check for errors like invalid URLs or formatting issues. Fourth, consider your Crawl Budget. If you have a large site, a sitemap helps search engines prioritize which pages to crawl.

Fifth, for e-commerce sites, you can create separate sitemaps for product pages, category pages, and images. This helps search engines understand the structure of your site. For example, Magento Sitemap XML can be configured to generate specific sitemaps for different content types.

How Sitemaps Relate to Other SEO Elements

A sitemap works alongside other technical SEO elements. For example, your robots.txt file can point to your sitemap, making it easier for search engines to find it. internal linking also helps search engines discover pages, but a sitemap is a backup for pages that are hard to reach through links alone.

Sitemaps are not a replacement for good site architecture. They are a supplement. If your site has weak internal linking, a sitemap can help, but it cannot fix all problems. Similarly, a sitemap cannot fix blocked pages, duplicate URLs, or canonicalization issues. If you have a page with a canonical tag pointing to another version, include the canonical URL in the sitemap, not the duplicate. This helps search engines understand your preferred version. Sitemaps can also be used to submit video and image content for rich results, which is a separate extension.

For more details on the XML format, see Sitemap.xml. For a third-party perspective, you can check Moz Sitemap.

Comparison of XML Sitemap and HTML Sitemap
FeatureXML SitemapHTML Sitemap
Primary audienceSearch enginesHuman visitors
FormatStructured XML fileWeb page with links
SEO purposeHelp crawlers discover URLsHelp users navigate
Metadata supportYes (lastmod, changefreq, etc.)No
Submission to GoogleVia Search Console or robots.txtNot directly submitted

Common mistakes

  • Treating a sitemap as a direct indexing command Google may still not crawl or index the URL, leading to false expectations.
  • Including low-value, blocked, redirected, or non-canonical URLs Wastes crawl budget and can confuse search engines about which pages are important.
  • Forgetting to update the sitemap after major content or URL changes Outdated sitemap can lead to broken links or missed indexing opportunities.
  • Submitting the sitemap but never checking Search Console for errors You might not know if your sitemap has problems, such as invalid URLs or formatting issues.

Questions

how to make a sitemap

You can make a sitemap using a CMS plugin like Yoast SEO or Rank Math, which generates one automatically. For custom sites, use a sitemap generator tool that crawls your site and produces an XML file. After creating it, validate the file and submit it via Google Search Console.

what is a sitemap

A sitemap is a file that lists a website's important pages and resources for search engines. It helps crawlers discover URLs, understand site structure, and pick up metadata like last modified dates. It is a hint, not a command, for indexing.

sitemap generator

A sitemap generator is a tool that creates an XML sitemap for your website. Many CMS plugins include built-in generators. For static sites, you can use online tools or scripts that crawl your site and output a sitemap file.

sitemap seo

A sitemap is important for SEO because it helps search engines discover and crawl your pages more efficiently. It is especially useful for large sites, new sites, or pages with few internal links. However, it does not guarantee indexing.

download sitemap

You can download your sitemap from your website by visiting the URL where it is stored, often at example.com/sitemap.xml. If you use Google Search Console, you can also download it from the sitemaps report. Some CMS plugins allow you to download the file directly.

See also

Sources

  1. Google Search Central: What Is a Sitemap developers.google.com
  2. Google Search Central: Sitemaps overview (localized version) developers.google.com
  3. Google Search Central: Sitemaps documentation developers.google.com

Outbound links are unpaid and nofollow. If one has gone stale, tell me.