Sitemap.xml Generator
SEO Tools
Generate a valid sitemap.xml from a list of URLs. Bulk-set lastmod, changefreq, and priority. Validates against the 50,000 URL / 50 MB limits.
Runs entirely in your browserAbout Sitemap.xml Generator
Sitemaps are how you proactively tell search engines what URLs exist on your site. Without one, Google has to discover URLs by following links — slow and incomplete for large sites. With one, you give Google a complete catalogue plus optional metadata about freshness and importance.
This generator takes a list of URLs (one per line) and produces a properly-formatted sitemap.xml that conforms to the sitemaps.org protocol. You can apply lastmod (last-modified date), changefreq (how often pages change), and priority (relative importance 0.0–1.0) to every URL at once via the side panel, or strip metadata entirely for a minimal sitemap. The tool warns when you cross protocol limits (50,000 URLs or 50 MB per sitemap — at which point you need to split into multiple sitemaps and use a sitemap index). Everything builds in your browser using fast-xml-parser; nothing is uploaded.
How to use
- 1
Paste your URLs
One URL per line, with full protocol (https://). The tool counts them and shows the total above the textarea.
- 2
Configure metadata defaults
Toggle 'Include metadata' off for a minimal `<loc>`-only sitemap, or set lastmod / changefreq / priority defaults that apply to every URL.
- 3
Watch for warnings
Protocol limits: 50,000 URLs and 50 MB per sitemap. Above either, you need to split. Malformed URLs are flagged.
- 4
Download the XML
Save as `sitemap.xml` at the root of your site, or reference it from a sitemap index.
- 5
Submit to Search Console
After deploying, submit `https://yoursite.com/sitemap.xml` in Google Search Console → Sitemaps. Bing Webmaster has the equivalent.
Examples
Minimal sitemap
Input
https://example.com/
https://example.com/aboutOutput
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
</url>
<url>
<loc>https://example.com/about</loc>
</url>
</urlset>With metadata
Output
<url>
<loc>https://example.com/blog</loc>
<lastmod>2026-05-20</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>Frequently asked questions
Does Google actually use the priority and changefreq tags?+
Largely no, by Google's own admission. Google's crawl scheduler decides priority and revisit frequency based on its own signals. The tags are inherited from the older Yahoo/MSN era. Bing and other search engines may use them more. They cost nothing to include, so include them, but don't expect ranking impact.
When do I need multiple sitemaps?+
Above 50,000 URLs or 50 MB uncompressed. Split into multiple sitemaps (e.g., one per content type or one per 50K URLs) and create a sitemap index file (`sitemap-index.xml`) that references each. Submit only the index to Search Console.
Should I include URLs with query strings?+
Generally no, unless they're meaningful canonical URLs. Search-result pages, filter combinations, and tracking-param URLs should be excluded — they create duplicate-content issues. Stick to clean canonical URLs.
What's the right lastmod date?+
The date you last meaningfully updated the content (not the date you fixed a typo or rebuilt the deploy). Inflating lastmod makes Google distrust your sitemap; setting it to today on every URL during a deploy is a common anti-pattern.
Can I include non-HTML URLs?+
Yes — sitemaps can contain any URL that returns content (images, PDFs, videos). There are also specialized sitemaps (image-sitemap, video-sitemap, news-sitemap) with additional fields for those types.
Is the URL list sent anywhere?+
No. XML building happens entirely in your browser via fast-xml-parser.
Related tools
Meta Tag Generator
Build a complete set of HTML meta tags — basic SEO, Open Graph, Twitter Cards, viewport — with character-count warnings.
SERP Snippet Preview
Preview how your title, URL, and meta description render in Google search results — desktop and mobile.
hreflang Generator
Build the hreflang link tag set for multilingual or multi-regional sites with BCP 47 validation.
Readability Score
Score your content with six readability formulas — Flesch, Gunning Fog, SMOG, Coleman-Liau, ARI.
Keyword Density Analyzer
Analyze 1-, 2-, and 3-word phrase frequency and density in your content with stopword filtering.
Robots.txt Generator
Build a valid robots.txt visually with user-agent groups, allow/disallow rules, and sitemap URLs.