JSON to XML converter
Generate clean XML from JSON for systems that still speak XML.
Free No sign-up Runs in your browser
How it works
How to use the JSON to XML tool
- 1
Paste or open JSON
Any valid JSON.
- 2
Set the root element
Optionally pretty-print.
- 3
Copy or download
A UTF-8 .xml file.
Mapping rules
Objects become elements, arrays become repeated elements, keys beginning with “@” become attributes and “#text” becomes element text. Keys that aren’t valid XML names are adjusted safely.
Limitations
We’d rather be upfront about what this tool can’t do yet:
- XML namespaces aren’t generated automatically.
FAQ
Frequently asked questions
Is my data sent anywhere?
No. All processing happens locally in your browser. Nothing you enter is uploaded, stored or logged.
How do I add attributes?
Prefix the key with @, for example {"book": {"@id": "b1", "title": "…"}}.
Keep going