🔄

JSON to XML Converter

Convert JSON data to XML format instantly. Free online tool.

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <catalog>
    <book>
      <id>1</id>
      <title>The Great Gatsby</title>
      <author>F. Scott Fitzgerald</author>
      <price>9.99</price>
    </book>
    <book>
      <id>2</id>
      <title>1984</title>
      <author>George Orwell</author>
      <price>12.99</price>
    </book>
  </catalog>
</root>

About JSON to XML Conversion

Arrays: JSON arrays are converted to repeated XML elements with the same tag name.

Objects: JSON object keys become XML element names. Special characters are replaced with underscores.

Primitives: Strings, numbers, and booleans are placed as text content inside elements.