🔒 All tools run entirely in your browser. No data leaves your device.

Sitemap XML Generator

Generate sitemap.xml from a list of URLs. Supports lastmod, changefreq, priority. Produces valid XML conforming to sitemaps.org schema 0.9.

0 URLs

Defaults

URLs — one per line. Optional: URL YYYY-MM-DD

sitemap.xml

(paste URLs above)

Submit at Google Search Console and reference from robots.txt with Sitemap: https://example.com/sitemap.xml.

About this tool

A sitemap is a list of URLs you want search engines to know about, with optional metadata about when each was last modified, how often it changes, and how important it is relative to other pages on the site. Modern static-site frameworks (Astro, Next.js, Hugo) usually generate one automatically — this tool is for the cases they don't cover: hand-crafted sites, manual additions to an auto-generated sitemap, or when you need to produce a sitemap from a list of URLs you already have.

Paste URLs (one per line). Optional defaults — lastmod, changefreq, priority — get applied to URLs without their own values. The output conforms to the sitemaps.org 0.9 schema, the format every search engine accepts.

Once deployed, reference the sitemap from robots.txt with a Sitemap: https://example.com/sitemap.xml line, and submit the URL in Google Search Console under Sitemaps. Sites with more than 50,000 URLs need to split into multiple sitemaps and produce a sitemap index — for those, generate one file per logical group (blog, products, etc.) and hand-author a small sitemap-index.xml that lists them.

Frequently asked questions

Do I really need a sitemap?

For a small site with good internal linking, sometimes no — Google will find everything anyway. For a site with isolated pages, a new domain, or content not reachable from the home page in a few clicks, yes. Sitemaps also help search engines discover updates faster than crawl alone.

How do I submit my sitemap?

Reference it from robots.txt with a `Sitemap:` line, and submit the URL in Google Search Console under Sitemaps. Bing has its own equivalent in Bing Webmaster Tools.

What are the size limits?

A single sitemap file is limited to 50,000 URLs and 50 MB uncompressed. For larger sites, split into multiple sitemaps and produce a sitemap index that points at them. The tool warns when you exceed the URL count.

Should I include lastmod, changefreq, and priority?

lastmod is the most useful — it tells search engines when a URL changed and helps prioritize re-crawl. changefreq and priority are taken as hints (Google admits to mostly ignoring them). Including them costs nothing and helps lesser search engines that still respect them.

What format should lastmod use?

ISO 8601: YYYY-MM-DD or YYYY-MM-DDThh:mm:ss+00:00 with a timezone. The tool defaults to today’s date in YYYY-MM-DD form, which is sufficient for most pages.