JSON to XML Converter
Convert JSON to XML online. Set the root element name, arrays become repeated elements, and special characters are escaped. Everything runs locally in your browser; nothing is uploaded.
Paste JSON and choose a root element name. Objects become nested elements, arrays repeat the element and special characters are escaped.
JSON
XML
Output appears here.Learn more
JSON and XML differ
XML needs a single root element, while JSON can be an array or a bare value. That is why the converter wraps your data in a root element you can rename.
Escaping
Characters that XML reserves — &, < and > — are replaced with entities so the result is well-formed.
Frequently asked questions
How are arrays converted?
Each item becomes a repeated element with the array's key as its tag name.
What if a key is not a valid XML name?
Invalid characters are replaced with underscores and a leading underscore is added if the name starts with a digit.
Are attributes supported?
No. All values become child elements.