JSON to XML Converter

Paste your JSON, click Convert, and get well-formed XML output. Invalid JSON will show a clear error message.

Why Use the JSON to XML Converter?

Some systems, APIs, and legacy applications require data in XML format. This tool converts your JSON data into well-formed XML, handling nested objects, arrays, and special characters automatically. Useful for generating SOAP payloads, config files, or feeding data into XML-based workflows. Need the reverse? Use the XML to JSON Converter.

After converting, use the XML Formatter to clean up indentation, or validate the output to confirm it is well-formed. New to XML? Start with our XML basics tutorial.

Example Input

Paste a JSON object like this:

{
  "catalog": {
    "product": [
      {
        "name": "Widget",
        "price": 9.99,
        "inStock": true
      },
      {
        "name": "Gadget",
        "price": 24.99,
        "inStock": false
      }
    ]
  }
}

Example Output

The converter produces valid XML:

<?xml version="1.0" encoding="UTF-8"?>
<catalog>
  <product>
    <name>Widget</name>
    <price>9.99</price>
    <inStock>true</inStock>
  </product>
  <product>
    <name>Gadget</name>
    <price>24.99</price>
    <inStock>false</inStock>
  </product>
</catalog>