JSON to XML Converter
Paste JSON and convert it into XML with attributes, arrays, and text values preserved.
Paste JSON into the input box and select Convert to XML. If the JSON has one top-level key, that key becomes the XML root.
Use the fallback root field when converting arrays, strings, numbers, or objects with multiple top-level keys.
A JSON object like {"book":{"title":"Guide"}} becomes <book><title>Guide</title></book>.
How do I create XML attributes from JSON?
Add an @attributes object inside the JSON object. Each key inside @attributes becomes an XML attribute on that element.
How do arrays convert to XML?
Array values become repeated XML elements with the same tag name.
What root element should I use?
If your JSON already has one top-level key, that key becomes the root element. Otherwise, the root element field is used.
Is my JSON uploaded?
No. JSON parsing and XML generation happen locally in your browser.