XML to JSON
Convert XML data to JSON. Attributes become @-prefixed keys, text content uses #text.
Convert XML into JSON in your browser. Elements become nested objects, attributes become @-prefixed keys, and text content is stored under #text — a predictable, lossless mapping.
Frequently asked questions
How are XML attributes represented?
They become keys prefixed with @ so they don’t clash with child elements, and text content is placed under a #text key.
Does it preserve nesting?
Yes — nested elements become nested objects, and repeated elements become arrays.
Can I convert JSON back to XML?
Yes — use the JSON / XML converter to go the other direction.
Is it private?
Yes — parsing happens in your browser with no uploads.