Tool Kumar tool
JSON to XML
Create XML from a JSON object or array for a legacy endpoint, feed or integration test. Keys become element names and repeated array items become repeated elements.
How to use this tool
- Paste valid JSON.
- Choose XML in the convert view.
- Set the root name if the receiving system expects a specific element.
Worked example
The XML is generated from the sample object with Root as the document element.
Input
{"name":"Ada","age":36,"active":true,"tags":["json","tools"],"profile":{"city":"London"}}Output
<?xml version="1.0" encoding="UTF-8"?>
<root>
<name>Ada</name>
<age>36</age>
<active>true</active>
<tags>json</tags>
<tags>tools</tags>
<profile>
<city>London</city>
</profile>
</root>
Options and edge cases
- Object keys become XML elements.
- Arrays emit repeated child elements.
- Values are escaped as XML text, including ampersands and angle brackets.
Private by default
Your document stays in this browser. Tool Kumar parses, converts and creates downloads on your device, with no account or upload step.
JSON to XML questions
- How are JSON arrays represented in XML?
- Array values become repeated elements under their property name.
- Can I change the root element?
- Yes. Set the root name in the converter toolbar.
- Does it preserve JSON null?
- Null values are emitted as empty elements. Check the receiving schema if it needs an explicit nil attribute.