About the JSON to XML Converter
The JSON to XML Converter turns each JSON key into an XML element and each value into its text, escaping characters such as < and &. Arrays become repeated elements with the same name, null becomes an empty element, and everything sits inside a root element you name.
How to use the JSON to XML Converter
- Paste the JSON.
- Set the root element name (default
root). - Copy the XML output.
Example
Arrays
{"tag":["a","b"]} becomes <root><tag>a</tag><tag>b</tag></root>.
Frequently asked questions
Can keys contain spaces?
XML element names cannot contain spaces or start with a digit. Rename such keys first so the XML is valid.
Are attributes created?
No. Every value becomes an element.
Is the output indented?
No, it is compact. Paste it into a formatter if you need indentation.