JSON to XML Converter
The JSON to XML converter writes a JSON structure as an indented XML document. Object keys become element names, arrays repeat their parent element, and any key that is not a valid XML name is sanitised so the output always parses.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the JSON to XML Converter
- Paste valid JSON — an object or an array both work.
- Set the root element name, and the element name used for entries inside arrays.
- Copy or download the XML.
Example
{"name":"Ada","tags":["a","b"]}
<root>
<name>Ada</name>
<tags>
<item>a</item>
<item>b</item>
</tags>
</root>
Common use cases
- Feeding a legacy system that only accepts XML.
- Producing XML fixtures from JSON test data.
- Converting a configuration file between formats during a migration.
Limitations and things to watch for
- JSON keys that are not valid XML names — those starting with a digit, or containing spaces or symbols — are sanitised, and the original key is preserved in a key attribute.
- JSON null becomes an empty element. Booleans and numbers become their text representation, since XML has no native types.
- Control characters that XML 1.0 forbids are removed from values.