XML to JSON

Paste XML and get a structured JSON object. Attributes, nested elements and repeated tags are all preserved.

Frequently asked questions

What XML does it accept?

Well-formed XML with a single root element. Attributes are collected under an "@attributes" key, and repeated child tags become arrays.

What if my XML has a parse error?

The tool reports the error so you can fix it — it will not guess at malformed input.

Is my data uploaded?

No. Parsing runs entirely in your browser with the built-in XML parser.