JSON to XML
Convert JSON objects to XML. Keys prefixed with @ become attributes.
All processing on this page runs locally in your browser unless noted otherwise.
Ctrl/⌘ + Enter to run
Input
Output
How to use
- Paste JSON on the left (or import a .json file).
- Adjust attribute prefix / namespace options, then convert.
- Copy or download the XML; open reverse for XML → JSON.
FAQ
How do I set attributes?
With the @ prefix on, keys like "@id" become XML attributes.
What if JSON is invalid?
Conversion stops and shows a parse error; the previous output is left unchanged until success.