JSON to XML Converter
Convert JSON to XML instantly, live as you type.
<?xml version="1.0" encoding="UTF-8"?>
<root>
<name>Bytelify</name>
<tools>210</tools>
<active>true</active>
</root>Converts live as you type, entirely in your browser. There's no single official JSON↔XML standard — arrays become one repeated element per item, which is the most common convention. Invalid JSON shows the parser's exact error message.
Need the opposite? XML to JSON Converter
What is JSON to XML Converter?
Paste JSON and get an equivalent XML document instantly. There's no single official JSON-to-XML standard, so this follows the most common convention: object keys become elements, and array items each become their own repeated element.
How to Use the JSON to XML Converter
- 1
Paste the JSON: Enter any valid JSON object or array.
- 2
Read the XML Result Instantly: The equivalent XML document appears automatically as you type.
- 3
Copy the Result: Use the copy button to copy the XML for use in a legacy system or SOAP-based API.
How the Mapping Works
Each JSON object key becomes an XML element with that name, wrapping its value. A nested object becomes a nested element containing its own child elements. An array produces one repeated element per item, all sharing the array's key as their tag name, one after another at the same nesting level.
Example
Input:
{ "user": { "name": "Alice", "roles": ["admin", "editor"] } }
Output:
<user>
<name>Alice</name>
<roles>admin</roles>
<roles>editor</roles>
</user>
The "user" object becomes a <user> element, "name" becomes a nested <name> element, and each item in the "roles" array becomes its own repeated <roles> element.Frequently Asked Questions
Common questions about JSON to XML Converter.