JSON ⇄ XML Converter
Paste JSON or XML and convert it the other way. Attributes, repeated elements and text content are mapped predictably.
Runs in your browser — nothing is uploadedHow to use JSON ⇄ XML Converter
- Choose the direction (or paste and let it detect JSON vs XML).
- Paste your data or open a file.
- Copy or download the converted result.
Questions
How are XML attributes represented in JSON?
As keys starting with “@” (e.g. "@id": "5"). Element text next to attributes or child elements goes in "#text". Converting back to XML uses the same convention.
What happens to repeated elements?
Elements with the same name under one parent become a JSON array. When converting JSON to XML, each array item becomes a repeated element with the array’s key as its name.
Is my data uploaded?
No. Parsing and conversion happen entirely in your browser.