Converters
JSON to XML Converter
Turn JSON into well-formed, indented XML, with attributes and repeated elements.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the JSON to XML Converter
- Paste your JSON.
- Set the root element name, attribute prefix and indentation.
- Copy or download the XML.
Frequently asked questions
How do I create XML attributes?
Prefix a key with @ (or your chosen prefix): {"@id": 1} becomes id="1" on the element.
How are arrays converted?
Each array item becomes a repeated element with the key as its name.
Are special characters escaped?
Yes. &, <, > and quotes are escaped, and invalid element names are made safe.