JSON to XML

Convert JSON data into equivalent XML markup. Handles nested objects, arrays and attributes.

Loading tool…

How to use the JSON to XML

Transform JSON into XML for systems and APIs that require XML input. Nested objects become nested elements and arrays become repeated elements, with clean indentation in the output.

  1. 1Paste your JSON into the input box.
  2. 2Set the root element name if you want a custom one.
  3. 3Click "Convert to XML".
  4. 4Copy or download the XML result.

Frequently asked questions

How are JSON arrays represented in XML?

Each array item becomes a repeated element with the same tag name inside its parent.

What if my JSON is invalid?

The tool highlights the parse error so you can fix it before converting.