Convert JSON to XML
Generate XML from JSON for systems that only accept XML.
Everything runs in your browser. Nothing you type or paste is sent to a server.
How to convert JSON to XML
- 1
Paste the JSON.
- 2
Set the root element name if needed.
- 3
Copy or download the XML.
About this tool
Every key becomes an element and lists become repeated elements. Keys starting with “@” become attributes.
Special characters (&, <, >) are escaped so the XML is always valid.
Frequently asked questions
What about keys that aren't valid XML names?
They're adjusted automatically, for example with a leading underscore if they start with a digit.
What's the root element for?
XML needs a single top element. If your JSON is a list, it's wrapped in that element.