How to convert XML to JSON
- Upload or paste XML. Drop an `.xml` file (RSS feed, sitemap, SOAP XML) onto the upload box or paste XML text into the text area.
- Click Convert XML to JSON. The browser uses native `DOMParser` to convert XML tags, attributes, and text nodes into JavaScript objects.
- Inspect formatted JSON output. View pretty-printed JSON arrays and nested key-value pairs.
- Download output files. Export the parsed data as a `.json` file or tabular CSV spreadsheet.
Frequently asked questions
Can this tool convert XML sitemaps to JSON?
Yes! It converts XML sitemap files (`sitemap.xml`) into JSON arrays containing `
How are XML attributes represented in the JSON?
Attributes are prefixed with `@` (e.g. `@id`: '123') to distinguish them cleanly from child element nodes.
Is there a file size limit for XML conversion?
Because conversion happens client-side using JavaScript `DOMParser`, it can process large XML files up to tens of megabytes instantaneously.
Is my XML data kept private?
Yes. Everything runs 100% in your local web browser. No data is ever uploaded or logged.