XML to JSON
Get XML into a shape JavaScript can work with.
Runs entirely in your browser — your data is never uploaded to any server.
How it works
- Paste your XMLA document, an API response, a config file.
- Choose how attributes appearPrefixed, or merged with child elements.
- Copy the JSONStructure and attributes preserved.
What this tool does
- Parsed by the browser’s XML parser, so malformed input is caught precisely
- Attributes preserved with a configurable prefix
- Repeated elements become arrays automatically
- CDATA sections and comments handled sensibly
Frequently Asked Questions
Privacy and security
Your input is processed by JavaScript running inside your browser. Nothing you paste is sent over the network, logged, or stored — which is what makes this safe to use with production data. If you want to check this yourself: open your browser’s developer tools, switch to the Network tab, and use the tool — you will see no request carrying your file or input leave the page.