FAQ // All answers
How do I convert an XML sitemap to JSON?
Convert an XML sitemap to JSON by parsing each <url> entry into an object with url, lastmod, changefreq, priority and (for sitemap-index conversions) source fields, then emitting an array. The output is much friendlier than CSV for scripts, AI agents, n8n flows and dashboards that consume JSON natively. On xmlsitemapmaker.com, switch the export format to JSON and click Convert — you get a pretty-printed array of objects, with optional fields omitted (not set to null) when the sitemap doesn't declare them. The JSON format also preserves URL strings cleanly without the CSV quoting rules, which matters when URLs contain commas, equals signs or unicode characters.
RELATED