How to use
- Paste or upload JSON.
- Set the root element name and the element name for array items.
- Copy or download the XML.
Convert JSON objects into well-formed XML
JSON objects map naturally to XML elements: each key becomes a child element and each primitive becomes text content. Arrays, which XML has no direct equivalent for, become repeated child elements. Null values become empty self-closing elements.
Each array item becomes a child element. If the array key is plural, such as items, each child is named by the singular form (item); otherwise the name you set under Item element is used.