XML Sitemap Generator

Create a valid sitemap.xml for Google, Bing, and other search engines. 100% client-side.

ℹ️ Standards: Compliant with the XML Sitemap Protocol 0.9. Max 50,000 URLs and 50MB uncompressed per sitemap. Follows W3C datetime format for lastmod.
✓ 5 valid

URLs (5)

#1
#2
#3
#4
#5
5
Valid URLs
0.7
KB size
28
XML lines
✓
Within limits
Generated sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://codekeet.com/</loc>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://codekeet.com/tools</loc>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://codekeet.com/blog</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://codekeet.com/ai</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://codekeet.com/services</loc>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>
</urlset>

📖 Sitemap tag reference

<loc>
Required. The URL — must be absolute, use the canonical version, and start with http:// or https://.
<lastmod>
Optional. W3C datetime — YYYY-MM-DD or YYYY-MM-DDThh:mm:ss+00:00. Only include if accurate.
<changefreq>
Optional hint. always, hourly, daily, weekly, monthly, yearly, never. Google ignores it.
<priority>
Optional. 0.0 (lowest) to 1.0 (highest). Relative within the same site.
🔒 100% private: All generation happens in your browser. Your URLs are never sent to any server.

About XML Sitemap Generator

An XML sitemap is a file that lists the URLs on your website so search engines can crawl and index them more intelligently. It is not required for small sites (crawlers discover pages via links), but it becomes critical for large sites (thousands of URLs), sites with orphan pages, and sites with rich media (image, video, news sitemaps). The XML sitemap protocol was introduced by Google in 2005 and is now supported by all major search engines including Bing, Yandex, and Baidu. A valid sitemap follows the XML Sitemap Protocol 0.9: URLs are wrapped in <urlset> with <url>, <loc>, <lastmod>, <changefreq>, and <priority> elements. This generator builds standards-compliant sitemaps, including sitemap indexes for very large sites (50,000 URLs or 50MB per file).

How It Works

  1. Enter the base URL of your site.
  2. Add URLs manually (with optional lastmod, changefreq, priority) or paste a list of URLs in bulk.
  3. Choose whether to generate a single sitemap or a sitemap index (for large sites).
  4. Preview the XML and download as sitemap.xml.
  5. Upload to your site root and submit in Google Search Console.

✨ Key Features

  • ✓Add URLs manually with lastmod, changefreq, priority
  • ✓Bulk-paste URL list (one per line)
  • ✓Auto-detect common URL patterns
  • ✓Choose changefreq per URL (always, hourly, daily, weekly, monthly, yearly, never)
  • ✓Set priority per URL (0.0–1.0)
  • ✓Single sitemap or sitemap index mode
  • ✓Valid XML (XML Sitemap Protocol 0.9)
  • ✓Sitemap preview with live updates
  • ✓Download as .xml file
  • ✓Character and URL count indicators
  • ✓Sub-sitemap splitting (up to 50,000 URLs per file)
  • ✓100% client-side — no data sent to any server

🎯 Common Use Cases

  • →Setting up a sitemap for a new website
  • →Recovering from "URL not found in Google" issues
  • →Submitting a sitemap in Google Search Console
  • →Listing orphan pages that have no internal links
  • →Creating a sitemap for a large e-commerce site
  • →Preparing a sitemap for a client
  • →Generating a sitemap for a static site
  • →Learning the XML Sitemap Protocol

💡 Advanced Tips & Pro Insights

  • ▸A single sitemap can contain up to 50,000 URLs and be up to 50MB uncompressed. For larger sites, use a sitemap index.
  • ▸A sitemap index is a sitemap that lists other sitemaps — use it to split large sites into chunks.
  • ▸lastmod should be the actual date the page was last modified (W3C datetime format, e.g. 2026-10-10T15:30:00+00:00). Only include it if accurate.
  • ▸changefreq is a HINT, not a directive. Google largely ignores it. Safe values: always, hourly, daily, weekly, monthly, yearly, never.
  • ▸priority ranges from 0.0 to 1.0. It is relative to other pages on the same site, not across sites. Google largely ignores it.
  • ▸Only include canonical URLs. Do not include URLs that redirect, return 404, or are blocked by robots.txt.
  • ▸Sitemaps should be referenced in robots.txt (Sitemap: https://example.com/sitemap.xml) and submitted in Google Search Console.
  • ▸For very large sites, auto-generate the sitemap from your CMS (WordPress Yoast, Shopify, etc.) rather than maintaining it by hand.

Frequently Asked Questions

Is this XML sitemap generator free?▾
Yes, this XML sitemap generator is completely free with no signup, email, or usage limits.
Is my data safe?▾
Yes, 100% safe. All generation happens in your browser. Your URLs are never uploaded to any server.
What is an XML sitemap?▾
An XML sitemap is a file listing the URLs on your site so search engines can discover and index them. It follows the XML Sitemap Protocol 0.9, introduced by Google in 2005.
Do I need a sitemap?▾
For small sites (< 100 pages) with good internal linking, it is optional. For large sites, sites with orphan pages, or sites with lots of rich media, it is strongly recommended. Google uses it as a hint, not a directive.
What is the difference between a sitemap and a sitemap index?▾
A sitemap lists page URLs. A sitemap index lists other sitemaps. Use an index when your site has more than 50,000 URLs or you want to organize sitemaps by section.
What does changefreq mean?▾
changefreq is a hint about how often a page changes. Values: always, hourly, daily, weekly, monthly, yearly, never. Google largely ignores it now, but it is harmless.
What does priority mean?▾
priority is a hint (0.0 to 1.0) about the relative importance of a page within the same site. It does not affect cross-site ranking. Google largely ignores it, but it can help internal crawl prioritization.
How do I submit my sitemap to Google?▾
Upload sitemap.xml to your site root (https://example.com/sitemap.xml), then go to Google Search Console → Sitemaps → enter the URL → Submit. Bing Webmaster Tools has a similar flow.