Free XML Sitemap Generator

Build a valid XML sitemap for your website. Enter URLs, configure settings, and download a ready-to-submit sitemap.xml file.

Quick Presets

Add URL

Last updated: March 2026

What Is an XML Sitemap?

An XML sitemap is a structured file that tells search engines about the pages on your website. It lists URLs along with metadata including when each page was last modified, how often it changes, and how important it is relative to other pages. Major search engines including Google, Bing, and Yahoo all use sitemaps to improve their crawling efficiency.

The XML sitemap protocol (sitemaps.org) was jointly developed by Google, Yahoo, and Microsoft in 2006. Today, it remains the standard way to communicate your site structure to search engines. A well-maintained sitemap ensures that all your important content is discovered and indexed, even pages that might be difficult to reach through normal crawling.

Why Every Website Needs a Sitemap

While search engines can discover pages by following links, sitemaps provide a direct, comprehensive list of every page you want indexed. This is especially important for new websites that don't have many backlinks, large sites where some pages may be several clicks deep, and sites that add or change content frequently.

Google Search Console uses your sitemap to track how many of your pages are indexed, identify crawl errors, and report on your site's overall health. Without a sitemap, you're relying entirely on Google's crawler to find all your pages through links — which can miss orphaned pages or take weeks to discover new content.

XML Sitemap Format and Structure

A valid XML sitemap starts with an XML declaration and a urlset element that references the sitemap namespace. Inside the urlset, each page is represented by a url element containing loc (the URL), lastmod (last modification date), changefreq (how often the page changes), and priority (relative importance from 0.0 to 1.0).

Only the loc element is required — lastmod, changefreq, and priority are optional but recommended. The lastmod date should reflect actual content changes, not just when the page was regenerated. Using accurate metadata helps search engines allocate their crawl budget more efficiently.

Frequently Asked Questions

What is an XML sitemap?

An XML sitemap is a structured file that lists URLs from your website along with metadata like last modification date, change frequency, and priority. Search engines use sitemaps to discover and understand your site's structure, ensuring all important pages get crawled and indexed.

How do I add a sitemap to my website?

Generate your sitemap using this tool, download the sitemap.xml file, and upload it to your website's root directory (e.g., https://yoursite.com/sitemap.xml). Then submit it to Google Search Console and add a Sitemap directive to your robots.txt file.

What's the difference between a sitemap and a sitemap index?

A sitemap contains individual page URLs (up to 50,000). A sitemap index is a file that references multiple sitemaps, used for large websites that exceed the 50,000 URL limit or 50MB file size limit per sitemap. Each sitemap in the index can contain up to 50,000 URLs.

How often should I update my sitemap?

Update your sitemap whenever you add new pages, remove pages, or make significant content changes. Many CMS platforms and static site generators automatically regenerate sitemaps on each build. For dynamic sites, consider setting up automatic sitemap generation.

Does having a sitemap improve SEO?

A sitemap doesn't directly improve your search rankings, but it helps search engines discover your content faster and more completely. This is especially valuable for new websites, large sites with hundreds of pages, sites with complex navigation, and pages with few internal links.

Should I include images and videos in my sitemap?

For image-heavy sites, you can create a separate image sitemap using the image sitemap extension. Similarly, video sitemaps help Google discover and understand video content. This generator creates standard URL sitemaps; for image/video sitemaps, additional XML namespaces are needed.

Related Tools