Data
JSON XML
Convert JSON to XML free. No signup. Files deleted after 1 hour.
Max 50MB5 conversions/hourView Basic and Pro plans →
About JSON to XML
JSON to XML uses the builder from fast-xml-parser. Keys become elements, keys that start with @ become attributes, and arrays become repeated elements named after their key. The output is a single line without an XML declaration and without an extra root element.
Frequently asked questions
What name does the root element get?
None is added. Wrap your data in a single top-level key, such as root, so the XML has exactly one root element. Several top-level keys give several root elements, which isn't valid XML.
How are arrays converted?
Each array item becomes a repeating element named after the property. JSON's [1,2,3] under 'tag' becomes three <tag> elements.