← Back to glossary
Sitemap Glossary

What is XML Sitemap?

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

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.

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>

Work with sitemaps programmatically

SitemapKit's API lets you discover, extract, and parse XML sitemaps from any domain. Get structured JSON data with all sitemap elements including XML Sitemap.

Related Terms