Sitemap Generator

Build a valid sitemap.xml for search engines. Bulk-add or drag-and-drop URLs, validate URL formats, enforce a single host, attach images, and download β€” all in your browser. Smart health score, easy & advanced modes, and auto-save included.

Sitemap Health
Start filling the form to see your score
0/100 Needs work

Smart Sitemap Generator

πŸ’‘ Just enter your website URL and paste your pages β€” we'll auto-validate, remove duplicates, enforce a single host and generate a valid sitemap. Switch to Advanced Mode for lastmod, image sitemaps, sitemap index and more.

Used to enforce a single-host sitemap. Hosts are compared exactly β€” www.example.com and example.com are different.

0 lines ready to add

Paste URLs β€” validation, duplicate removal and single-host enforcement happen automatically. Optional pipe format: url | priority | changefreq | YYYY-MM-DD | image_url | image_caption.

Sitemap summary live
0Total
0Valid
0Invalid
0Duplicates
0Foreign
0Images
No URLs yet β€” paste a list above and click β€œAdd URLs”.
XML preview first 3 valid URLs

Reflects current options. Full XML appears after you generate.

How to Use the Sitemap Generator

  1. Start in Easy Mode β€” paste your site URL and pages, then hit Generate. Validation, deduplication and single-host enforcement run automatically.
  2. Watch the Sitemap Health score β€” it updates live and highlights anything that could block generation.
  3. Switch to Advanced Mode for per-URL priority, changefreq, lastmod, image sitemaps, sitemap index, bulk import and XML options.
  4. Bulk-add or drag files β€” .txt, .csv and .xml sitemaps are supported. XML files have their <loc> URLs extracted automatically.
  5. Fix or remove any row flagged as invalid or foreign, then Generate.
  6. Drafts auto-save in this browser; use the Clear button to wipe both fields and the saved draft.

Easy Mode vs Advanced Mode

Easy Mode exposes only what beginners need and applies smart defaults (weekly / 0.8). Advanced Mode unlocks everything the original tool offered, including the sitemap index, image extension and XML declaration toggle. Your choice is remembered on this browser.

Bulk pipe format

Each line can carry per-URL overrides: url | priority | changefreq | YYYY-MM-DD | image_url | image_caption. Any field may be left blank to fall back to the defaults. Lines starting with # are ignored.

Image sitemaps

Enable Image sitemap extension to emit image:image blocks with image:loc, image:title and image:caption. Google requires the image URL to be on the same site (or a domain verified in Search Console), but this tool only validates URL format β€” different-host images are permitted because CDNs are common.

Sitemap limits you should know

A single sitemap file may contain up to 50,000 URLs and must not exceed 50 MB uncompressed. Each <loc> must be shorter than 2,048 characters. When you exceed the URL limit, the tool switches to sitemap index mode and generates multiple sitemap files plus an index.

Single-host enforcement

The sitemap protocol requires every <loc> to share one host. This tool blocks generation if any URL belongs to a different host than your Site URL, and lets you remove those rows. Hosts are compared exactly β€” www.example.com and example.com are different.

changefreq and priority

Google has publicly stated it ignores changefreq and priority. They remain part of the protocol and are included, but they are not a ranking signal. Accurate lastmod is the field search engines can actually use β€” which is why this tool never invents a date for you.

Where to submit your sitemap

Upload sitemap.xml (and any index parts) to your site root, then submit the URL in Google Search Console and Bing Webmaster Tools. You can also reference it from robots.txt with a line like Sitemap: https://example.com/sitemap.xml.

Is my data uploaded?

No. Your URL list, images and options are processed entirely in your browser. Drafts are saved to this browser's localStorage only β€” nothing is sent to a server.

Frequently Asked Questions

Does Google use priority and changefreq?No. Google ignores both. They are kept for protocol compliance and other crawlers.
Why must all URLs share one host?The sitemap protocol requires every <loc> to be on the same host as the sitemap file itself. Cross-host URLs are typically ignored.
Do I need <lastmod>?It is optional, but a truthful lastmod helps crawlers prioritise re-crawls. This tool deliberately does not auto-fill today's date β€” you must supply the real modification date yourself.
What about duplicate URLs?Duplicates are detected after URL normalization (fragments removed, default ports normalized, host lowercased) and are excluded from the sitemap. The summary and validation report show them.
How large can my sitemap be?50,000 URLs or 50 MB uncompressed, whichever comes first. This tool enforces both and switches to sitemap index mode when needed.
Does this check that pages exist?No. It validates URL format only. Verifying HTTP status and indexability requires a server-side crawler, which a browser-only tool cannot do reliably. This limitation is intentional and surfaced here, not hidden.
Where is my draft saved?In this browser's localStorage. Nothing leaves your device. Clearing site data or clicking Clear All removes it.