UTILS.
Private by default
🗺

XML Sitemap Generator

Generate a valid XML sitemap from a list of URLs with optional changefreq and priority.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
Leave the date empty to omit lastmod. To date one page, put a date after its URL, for example https://example.com/about 2026-10-01.
— output appears here —

About this tool

Sitemap Generator turns a plain list of URLs into a ready-to-use sitemap.xml. Paste one URL per line, choose a change frequency and a priority, optionally set a last-modified date, and the XML appears below. A Copy button puts it on your clipboard so you can save it as sitemap.xml.

The output starts with an XML declaration and a urlset element using the sitemaps.org namespace, followed by one url entry per non-empty line containing a loc element and, when set, lastmod, changefreq and priority. Special characters in URLs, such as the ampersand in a query string, are escaped so the XML stays valid. The change frequency (always to never) and the priority (1.0, 0.8, 0.5, 0.3 or 0.1) apply to every URL, and either can be set to omit. For lastmod, the date field is applied to all URLs, but you can date one page by writing a YYYY-MM-DD date after its URL on the same line; a valid date there wins over the field.

The tool does not fetch or validate the pages. It does not check that URLs are absolute, share one host, or are unique, and it does not split output at the protocol's limit of 50,000 URLs per file. A URL stops at the first space, so encode spaces as %20. Everything runs in your browser and nothing is uploaded.

Frequently asked questions

Do changefreq and priority matter?
They are optional hints. Search engines such as Google say they ignore both, so they are safe to omit. An accurate lastmod is more useful, but only when it reflects real content changes.
How do I set a different last-modified date for one URL?
Write the date after the URL on the same line, separated by a space, as in https://example.com/about 2026-10-01. It must be a real calendar date in YYYY-MM-DD form; otherwise the date field is used, or nothing if that is empty.
Where should I host the sitemap?
Upload it to your site, usually at the root such as /sitemap.xml, then list it in robots.txt with a Sitemap line or submit it in Google Search Console. A sitemap should only list URLs on its own site.
Does the tool check my URLs?
No. It escapes special characters and wraps each line in XML, but does not request the pages, remove duplicates or verify that they are absolute. Check the list yourself, and use one file per 50,000 URLs.

More tools