XML sitemap generator
Generate a valid XML sitemap for search engines from a simple list of pages. Each line is a URL — relative paths are resolved against your site URL — and you can append a lastmod date, a changefreq and a priority per row, or set sensible defaults for all of them. Output is standards-compliant urlset XML, ready to publish.
Related tools
All JSON, XML & formats tools →XML sitemap generator is free to use as often as you like, directly from this page. Its place is under JSON, XML & formats; XML Formatter / Validator and JSON to XML converter answer the questions closest to this one.
How to use it
- Open the tool — no signup or install needed.
- Enter your input or adjust the available options.
- Get your result instantly, then copy or download it.
Frequently asked questions
What does XML sitemap generator do?
Generate a valid XML sitemap for search engines from a simple list of pages. Each line is a URL — relative paths are resolved against your site URL — and you can append a lastmod date, a changefreq and a priority per row, or set sensible defaults for all of them. Output is standards-compliant urlset XML, ready to publish.
What does a concrete case look like?
<url><loc>https://example.com/a</loc><lastmod>2026-03-01</lastmod></url> — the tool shows every step in between, not just the final figure.
When would I actually use this?
Making a machine-generated blob readable, finding the character where a parse fails, and shrinking a file before it ships.
What is the most common mistake?
Assuming valid means correct. A document can parse cleanly and still have the wrong shape for whatever will read it — validation checks the syntax, not the schema.
How is XML sitemap generator different from XML Formatter / Validator?
They sit next to each other but answer different questions: XML Formatter / Validator is the one to open when you need it to pretty-print, minify and check whether XML is well-formed, all in your browser. Pick whichever matches what you're starting from — both are free.
Is there a tool for the next step?
JSON to XML converter is the closest one after this: Convert a JSON object into formatted XML.
Where do the figures come from?
Parsing and serialisation follow each format's specification. Key order and whitespace are not semantically meaningful in JSON or YAML, so a reformatted document is equivalent even when the bytes differ.