XML Sitemap Generator

Create sitemap.xml for static URLs. Bulk import, validation, sitemap index. Copy or download.

URLLastmodchangefreqpriority
Valid3 / 50,000 URLs
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-02-23</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://example.com/about</loc>
    <lastmod>2026-02-23</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://example.com/contact</loc>
    <lastmod>2026-02-23</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>

~0.00 MB • 50 MB limit

What is an XML Sitemap?

An XML sitemap lists your site URLs so search engines can discover and crawl them. It supports lastmod (last modification date), changefreq (how often the page might change), and priority (relative importance). Submit your sitemap in Google Search Console and add the Sitemap line to your robots.txt.

Try more free SEO tools

Browse All SEO Tools →

How to Use the XML Sitemap Generator

  1. Enter your URLs: Add each page URL to the table, or use Bulk import / Upload file to import URLs from a text, CSV, or existing sitemap.xml file.
  2. Set defaults: Choose a default changefreq and priority at the top. These values are applied to new rows and can be adjusted per URL if needed.
  3. Adjust individual rows: For important pages (like your homepage or key landing pages), increase priority or change frequency based on how often they update.
  4. Review validation messages: Use the inline warnings to fix invalid, duplicate, or out‑of‑domain URLs before you generate your final sitemap.
  5. Copy or download: When the preview looks correct, click Copy to copy the XML or Download to savesitemap.xml (or sitemap-index.xml in index mode) to your computer.
  6. Deploy and submit: Upload the file to your site (for example at /sitemap.xml), reference it in robots.txt, and submit the URL in Google Search Console and Bing Webmaster Tools.

XML Sitemap Examples

Example 1 – Simple sitemap.xml with 3 URLs

A small site with a homepage, about page, and contact page might use:

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://example.com/about</loc>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>
  <url>
    <loc>https://example.com/contact</loc>
    <changefreq>yearly</changefreq>
    <priority>0.4</priority>
  </url>
</urlset>

Example 2 – Sitemap index for large sites

A larger site can use a sitemap index that points to multiple sitemap files:

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemap-pages.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-blog.xml</loc>
  </sitemap>
</sitemapindex>

When to Use the XML Sitemap Generator

  • Launching a new site: Create a clean, complete sitemap so search engines can discover all important pages from day one.
  • Managing large websites: Use sitemap index mode to split tens of thousands of URLs into multiple sitemap files while staying within the 50,000‑URL and 50 MB limits.
  • After a redesign or migration: Regenerate your sitemap from a URL export to help search engines crawl your new structure and retire old URLs safely.
  • SEO housekeeping: Audit and rebuild sitemaps when you remove outdated content, consolidate sections, or change canonical URLs.
  • Static or headless sites: Quickly create sitemaps for static sites, marketing pages, or headless CMS deployments where a backend sitemap generator is not available.

Frequently Asked Questions

What is an XML sitemap?

An XML sitemap is a file that lists the URLs of your site so search engines can discover and crawl them more efficiently. It can include lastmod, changefreq, and priority hints. Submit your sitemap in Google Search Console and Bing Webmaster Tools, and add the Sitemap URL to your robots.txt.

Where do I put sitemap.xml?

Place sitemap.xml at your site root (e.g. https://yoursite.com/sitemap.xml) or another URL. Declare it in robots.txt with Sitemap: https://yoursite.com/sitemap.xml and submit the same URL in Search Console.

How many URLs can a sitemap contain?

A single sitemap can have up to 50,000 URLs and be up to 50MB uncompressed. For larger sites, use multiple sitemaps and a sitemap index file. This generator is for static URLs; for dynamic sites you may need a server-generated sitemap.

What are changefreq and priority?

changefreq is a hint for how often the page might change (e.g. daily, weekly). priority is a relative hint (0.0–1.0) for importance compared to other URLs on your site. Search engines may use these as hints but do not guarantee they will crawl accordingly.