Sitemap Glossary

What is XML Sitemap?

A structured XML file that helps search engines understand a website's URL structure.

Written by SitemapKit Editorial TeamUpdated: Jul 21, 2026

Key takeaways

  • Interpret XML Sitemap in its sitemap XML context; the detailed definition below explains its role and constraints.
  • Validate XML Sitemap against a real XML example instead of relying on the field or tag name alone.

An XML sitemap is a file formatted according to the XML standard that provides search engines with a list of URLs on a website. Unlike an HTML sitemap (which is designed for human visitors), an XML sitemap is machine-readable and follows the Sitemaps.org protocol.

XML sitemaps are critical for SEO because they ensure search engines discover all important pages, even those that might not be found through regular crawling. This is especially important for:

- New websites with few inbound links - Sites with thousands of pages (e-commerce, news sites) - Sites with pages not well-connected through internal links - Sites using JavaScript-rendered content

Google recommends submitting XML sitemaps through Google Search Console for the best crawling coverage.

XML example

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/products/widget-a</loc>
    <lastmod>2025-03-01</lastmod>
    <priority>0.8</priority>
  </url>
</urlset>

Continue with SitemapKit

Sources and further reading

Work with sitemaps programmatically

SitemapKit's API discovers and parses XML sitemaps into structured JSON, including fields such as XML Sitemap.

Related terms