JSONora · Free online tool
JSON to XML
Convert JSON objects into well-formed XML with a <root> element, proper escaping and readable indentation — all in your browser.
Input JSON
Output
Your JSON is converted locally in your browser. Nothing is uploaded.
Advertisement
How to convert JSON to XML
- Paste valid JSON into the input.
- Press Convert to XML.
- Copy or download the
.xmlfile.
Mapping rules
- Objects become nested elements; arrays repeat an
<item>element. - Key names are sanitized to valid XML tags;
&,<and quotes are escaped. - Empty objects and arrays become self-closing tags.
Working with an API that still speaks XML? Validate the source with the JSON validator first, then inspect it with the JSON viewer to choose the fields you need.
Advertisement