Sitemaps are one of those SEO terms where confusion is common because two very different things share the same name. An XML sitemap and an HTML sitemap have different formats, different audiences, different purposes, and different SEO implications. Understanding which is which prevents common mistakes.

Quick Answer: An XML sitemap is a machine-readable file for search engines listing all your important URLs β€” you submit it to Google Search Console. An HTML sitemap is a human-readable web page listing your site's structure for visitors to navigate. Both have value: the XML sitemap helps Google discover and prioritise your pages; the HTML sitemap helps users find content and provides crawlable links to every page.

What is an XML sitemap and what does it contain?

An XML sitemap is a structured text file β€” usually located at yoursite.com/sitemap.xml β€” that lists every URL on your site you want Google to index. It is written in XML format (a machine-readable language) that Googlebot reads to discover your pages efficiently.

A basic XML sitemap entry looks like this:

<url>
  <loc>https://yoursite.com/about</loc>
  <lastmod>2026-01-15</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.8</priority>
</url>

The loc field (URL) is the only required element. The others help Google understand update frequency and relative importance β€” though Google treats these as hints rather than strict instructions.

Do Google and other search engines use XML sitemaps differently?

Google, Bing, and other major search engines all support the XML sitemap standard and read submitted sitemaps. Submit your XML sitemap to both Google Search Console and Bing Webmaster Tools for maximum visibility. Each platform has its own submission process and shows its own crawl statistics for your sitemap.

What is an HTML sitemap and who is it for?

An HTML sitemap is a regular web page on your site that lists all or most of your important pages, usually organised hierarchically by section. It is primarily for human visitors who cannot find what they are looking for through navigation β€” a useful fallback for complex sites.

From an SEO perspective, an HTML sitemap provides a crawlable page that links to all your important content from one location. This ensures Googlebot can reach every page by following links through the HTML sitemap, even if your navigation does not surface deep content directly. It also concentrates internal links to all your pages, though the equity per link is diluted across many links.

Do you need both types of sitemap?

XML sitemap: Every site should have one. It is the primary mechanism for communicating your page inventory to Google. Without one, Google must discover all your pages by crawling links β€” slower and less reliable for large sites or pages without many internal links pointing to them.

HTML sitemap: Useful for large, complex sites where users may struggle to find specific content. Less necessary for small sites with clear navigation. An HTML sitemap that is never maintained and contains broken links becomes a negative signal rather than a helpful resource β€” if you have one, keep it updated.

How do you create and submit an XML sitemap?

Most CMS platforms generate XML sitemaps automatically:

  • WordPress: Yoast SEO or Rank Math plugins generate and update the sitemap automatically
  • Shopify: Generates a sitemap automatically at /sitemap.xml
  • Squarespace and Wix: Both auto-generate sitemaps
  • Custom sites: Use a free sitemap generator tool or add sitemap generation to your build process

To submit: Google Search Console β†’ Sitemaps β†’ enter your sitemap URL β†’ Submit. Google shows how many URLs it detected and successfully indexed from your sitemap, and flags any errors.

What should you exclude from your XML sitemap?

  • Pages with noindex tags β€” contradictory to tell Google to index them via sitemap while also noindexing them
  • Redirect URLs β€” include only the final destination URL
  • Broken pages returning 4xx or 5xx errors
  • Duplicate content pages if you have canonical tags pointing to preferred versions
  • Admin, checkout, and utility pages with no organic search value

Summary

  • XML sitemap = machine-readable file for search engines, submitted to Search Console
  • HTML sitemap = human-readable web page for visitors, also provides crawlable links to all content
  • Every site needs an XML sitemap β€” HTML sitemaps are helpful for large, complex sites
  • Include only canonical, live, non-noindexed pages in your XML sitemap
  • Submit to both Google Search Console and Bing Webmaster Tools

Continue reading: How do you build SEO for a new e-commerce store?