JSON to XML
Convert JSON to XML and download the result. Your input stays in your browser.
For the reverse conversion, use XML to JSON.
- Use it when
- Write XML from a JSON tree that describes elements, attributes, and ordered children.
- Keep in mind
- Provide the element structure shown below. Arbitrary JSON keys do not determine XML elements and attributes.
JSON input
{
"name": "item",
"attributes": {"id": "7"},
"children": ["Pen"]
}XML output
<item id="7">Pen</item> Input limit: 5 MiB
Your input stays in this browser. We don’t upload it. How we handle your data .
How to convert JSON to XML
Paste JSON or open a local file. Select Convert to XML, then download the result.
Frequently asked questions
How do I create an XML attribute from JSON?
Put the attribute name and its text value in the element’s attributes object. Keep element content in children, in the order you want it written.