JSON to XML Converter

Paste JSON and convert it to well-formed XML

Frequently Asked Questions

How are JSON arrays converted to XML? +
Each item in a JSON array is wrapped in an <item> element by default. For example, [1, 2, 3] becomes <item>1</item><item>2</item><item>3</item>. When an array is a property value, the property name is used as the wrapper element.
Can I customize the root element name? +
Yes. By default, the root element is named 'root', but you can type any valid XML element name in the Root Element field before converting.
How does the converter handle special characters? +
Special XML characters like <, >, &, and quotes are automatically escaped in the output. This ensures the generated XML is always well-formed and valid.
Does this tool handle deeply nested JSON? +
Yes. The converter recursively processes nested objects and arrays to any depth, producing properly indented XML elements for each level of nesting.
Can I download the XML output? +
Yes. After converting, you can click Download .xml to save the output as an XML file, or use the Copy button to copy it to your clipboard.