Technical SEO & Indexability

XML vs HTML Sitemaps: Both Have a Role

An XML sitemap is a direct line to Googlebot. An HTML sitemap serves human visitors. They solve different problems, and both reward careful thought about which URLs belong on them.

Junaid KhalidUpdated 8 min readBeginnerIncludes a 7 min video

The short answer

An XML sitemap is a machine-readable list of the URLs you want search engines to crawl. An HTML sitemap is a human-readable page that links to your content. The XML version is the one that matters for SEO: it helps Google discover pages, especially on new, large or poorly linked sites. The HTML version is a navigation aid with a small side benefit of extra internal links.

The single most important thing to get right is what goes in the XML sitemap. List only canonical, indexable URLs. Leave out noindex pages, redirects, 404s and duplicates. A clean sitemap is a stronger signal than a big one.

  • XML is for crawlers; HTML is for people. XML carries the SEO weight.
  • Include only canonical, indexable URLs. A clean list beats a long one.
  • Submit it in Search Console and declare it in robots.txt, then check the status.

Side-by-Side Comparison

AspectXML sitemapHTML sitemap
Primary audienceSearch engine crawlers (Googlebot, Bingbot)Human visitors
FormatXML file, usually at /sitemap.xmlHTML page, usually at /sitemap
SEO impactHigh: aids crawl discovery of your URLsLow to moderate: adds internal links
Needed?Recommended for new, large or poorly linked sitesOptional, most useful on large complex sites
SubmissionSubmitted in Search Console, declared in robots.txtLinked from the footer or navigation
ContentsURLs, with optional lastmodAnchor links grouped by section

What to Put in Your XML Sitemap

The rule is simple: every URL in the sitemap should be one you would be happy to see ranking. If it should not be in Google's index, it should not be in your sitemap.

Include

  • ✓Canonical public HTML pages
  • ✓Product, category and article URLs
  • ✓Image entries for visual-heavy pages
  • ✓Video entries where video is the main content

Exclude

  • ✗Noindex pages (admin, checkout, account)
  • ✗URLs blocked in robots.txt
  • ✗Non-canonical duplicate pages
  • ✗4xx and redirecting URLs
  • ✗Tracking-parameter and session URLs

Two related guides go deeper on the exclusions: when to use noindex tags and how to handle 404 errors and redirects so they never reach your sitemap in the first place.

The Sitemaps Report, from Google

This is the official Search Console training video for sitemaps. It shows the exact report you will use to submit a sitemap and read its status.

Daniel Waisberg of Google walks through submitting a sitemap and reading the Sitemaps report, including how to interpret the errors it surfaces.Video: Sitemaps in Search Console - Google Search Console Training by Google Search Central. Loads from YouTube only when you press play.

How to Submit and Verify

  1. 1

    Generate a clean sitemap

    Most CMS and frameworks produce one automatically. Confirm it lists only canonical, indexable URLs, and that it stays under 50,000 URLs and 50MB uncompressed. Larger sites split into several sitemaps referenced by a sitemap index file.

  2. 2

    Declare it in robots.txt

    Add a line reading Sitemap: followed by the full URL of your sitemap. This lets any crawler discover it, including Bing and other search engines you have not signed into.

  3. 3

    Submit it in Search Console

    Open the Sitemaps report, paste the sitemap URL and submit. Google will fetch it and begin reading the URLs. Do the same in Bing Webmaster Tools if Bing matters to you.

  4. 4

    Read the status

    Come back to the Sitemaps report after a day or two. Check that the status is Success and that the discovered URL count roughly matches what you expected. Any errors are listed with the line they occurred on.

  5. 5

    Spot-check indexation

    Pick a few important URLs and run them through URL Inspection to confirm Google indexed them and chose the canonical you expected. A URL in the sitemap that Google skipped usually points to a quality or duplication issue, not a sitemap problem.

Submitting the same XML sitemap in Bing Webmaster Tools takes a minute. In our Bing vs Google traffic study Bing sent 10% to 13% of search clicks on small sites, so it is worth the minute.

Checking Sitemaps with Murkuz

Murkuz will not crawl your site or validate your sitemap against your robots.txt and redirects. That is a crawler's job, and tools like Screaming Frog do it well. Murkuz is a read-only connector that lets you query the data Google and Bing already hold, from inside Claude or ChatGPT.

For sitemaps that means two things. List_Sitemaps returns every sitemap Google holds for a property, with the date it was last read and any errors, so you can ask "which sitemaps does Google have, and did any of them fail?" without opening the dashboard. And Inspect_URL asks Google about one specific URL: whether it is indexed and which canonical Google picked. Together they confirm Google is reading your sitemap and that the URLs in it are making it into the index. See the Search Console connector.

Further reading

The references behind this guide, starting with Google's own documentation and the sitemaps protocol. Each one was opened and read before it was added here.

  • Official docsGoogle Search Central

    Learn about sitemaps

    Google's overview: what a sitemap is, when your site needs one and when it does not, and the formats Google supports. Start here.

  • Official docsGoogle Search Central

    Build and submit a sitemap

    The how-to: XML, RSS and text formats, the lastmod rules, the 50,000 URL and 50MB limits, and the three ways to submit a sitemap to Google.

  • Official docsSearch Console Help

    Sitemaps report

    How to submit a sitemap in Search Console, read its status, and troubleshoot the errors the report flags. This is the report shown in the video.

  • Specificationsitemaps.org

    XML Sitemaps protocol

    The protocol itself, maintained by Google, Bing and others. The definitive reference for the required and optional tags and the file size and URL limits.

  • GuideYoast

    What is an XML sitemap and why should you have one?

    A beginner-friendly tour of XML sitemaps, sitemap index files and which pages to include, written from the perspective of a widely used SEO plugin.

Frequently Asked Questions

Does submitting an XML sitemap guarantee Google will index my pages?

No. A sitemap is a crawl hint, not an indexation command. It tells Google which URLs exist and are worth considering, but Google still decides independently whether each one is worth indexing, based on quality, duplication and crawl priorities. Submitting a sitemap is most valuable for new or large sites, or for pages that are hard to reach through normal internal links. It will not rescue thin or duplicate pages, which get crawled and then left out anyway.

What should I include in my XML sitemap?

Only canonical URLs you want crawled and indexed. Exclude noindex pages such as checkout, admin and account screens, anything blocked in robots.txt, non-canonical duplicates, URLs with tracking parameters, and 404 or redirecting URLs. The goal is a clean, curated list of your indexable pages. A sitemap where a large share of URLs are noindex, redirected or broken signals weak site hygiene and makes the sitemap less useful to Google.

How often should I update my XML sitemap?

Dynamically generated sitemaps, the norm for CMS and framework sites, update themselves whenever content is added or removed. Static sitemaps should be regenerated and resubmitted when you add or remove important pages. Set the lastmod date only when a page changed in a meaningful way, and keep it accurate, because Google can learn to ignore lastmod values on sites that stamp every page with today's date on every render.

Do HTML sitemaps still matter for SEO?

Their direct SEO value is small in 2026, but they serve two real purposes. They give human visitors a single page that links to everything, which helps on large or deep sites. And they create a crawlable internal link to every listed page, which can help discovery when your normal navigation is deep or JavaScript-heavy. For most sites with solid navigation and internal linking, an HTML sitemap is optional rather than essential.

Does a small website need an XML sitemap?

Google says a small site, roughly 500 pages or fewer, that is well linked internally and has no large collection of orphaned or media pages, usually does not need a sitemap, because Google can find everything by following links. A sitemap rarely hurts, though, and it gives you the Sitemaps report in Search Console to confirm Google is reading your URLs. New sites with few external links are the clearest case for adding one.

How do I submit my sitemap to Google?

Two steps. First, make the sitemap discoverable by adding a Sitemap line to your robots.txt pointing at its full URL. Second, submit the sitemap URL in the Sitemaps report of Google Search Console, where you can then watch its status and see any errors. You can submit the same sitemap in Bing Webmaster Tools too. There is no benefit to pinging the old ping endpoint, which Google has retired.

Which sitemaps does Google hold, and did any fail? Just ask.

Connect Search Console once, then ask inside Claude or ChatGPT. Murkuz hands back every sitemap Google has for your property, when it was last read and any errors, read-only through the official API.