JSON to XML
Convert a JSON document into well formed XML with a configurable root element.
Input
Result
How to use
Converting JSON to XML
Press Convert. Root level keys map to elements and arrays produce repeated sibling elements.
- Paste JSON into the input editor.
- Press Convert.
- Copy or download the XML output.
Frequently asked questions
How are arrays represented?
Every array item becomes an element named after the array key.
How are invalid XML tag names handled?
Keys that are not valid XML names are sanitised so the output stays well formed.
Related tools
XML to JSON
Convert XML into JSON with attributes and repeated elements handled sensibly.
JSON to YAML
Convert JSON to clean YAML for configuration files and Kubernetes manifests.
XML Formatter
Pretty print XML with consistent indentation and optional attribute wrapping.
JSON Formatter
Beautify and validate JSON with configurable indentation, error highlighting and one click copy.
JSON Validator
Check whether your JSON is valid and see a clear explanation of any syntax problem.
JSON Minifier
Remove every unnecessary space and newline to produce the smallest possible JSON payload.