JSON to XML / XML to JSON

Convert between JSON and XML.

Developer

About JSON / XML Converter

Convert between JSON and XML. Paste JSON and get XML, or paste XML and get JSON. Useful for APIs, configs, or data migration. All conversion runs in your browser.

Frequently Asked Questions

Is my data sent to a server?
No. All conversion happens in your browser.
How are JSON arrays converted to XML?
Array items become sibling elements with the same tag name (e.g. items: [{a:1},{a:2}] becomes <items><a>1</a></items><items><a>2</a></items> or a single parent with repeated children depending on implementation). Our tool uses a single parent with repeated child elements.
Can I convert XML with attributes?
Yes. Attributes are mapped to a special key (e.g. @attributes) in the JSON object, or you can use the simplified output.