Convert JSON to XML
Transform JSON into well-formed XML with header and indentation.
Your files never leave your device
How to go from JSON to XML
- 1
Paste or upload the JSON
With one root key, or we wrap it for you.
- 2
Convert
Well-formed XML with declaration and indentation.
- 3
Copy or download
Ready for systems that demand XML.
Why use this tool
Well-formed XML
Header, indentation and proper escaping guaranteed.
Automatic root
If your JSON lacks a single root, we create one for you.
Attributes possible
Keys prefixed with @_ become XML attributes.
Private
No data sent to servers.
Frequently asked questions
What if my JSON has no single root key?
It's automatically wrapped in a <root> element to produce valid XML.
How do I generate XML attributes?
Use keys prefixed with @_ in the JSON (fast-xml-parser convention) and they become attributes.
Are special characters escaped?
Yes: <, >, & and quotes are escaped correctly in the XML.
How do arrays come out?
Each array item becomes a repetition of the same XML element.