JSON to XML Converter Online Free
Paste a JSON object or array and download it as a well-formed XML document. Keys starting with @@ become attributes.
@@ (e.g. @@id) become XML attributes. Arrays become repeated child elements. null values get a nil="true" attribute.
How to convert JSON to XML
Wrap JSON data in XML for a system that will not take anything else — a bank, a government portal, a payroll provider or any long-lived enterprise integration.
- Paste your JSON, or upload the file.
- Set the root element name.
- Convert to XML.
- Copy or download the result.
Accepts any valid JSON. Nothing is retained after the conversion, and uploads are deleted automatically within 24 hours.
Frequently asked questions
How are JSON arrays represented?
Each item becomes a repeated child element under a containing element, which is how XML expresses a list.
What if my JSON keys are not valid XML element names?
A key starting with a digit, or containing a space or a symbol, is not a legal element name and is sanitised. Rename such keys yourself if the receiving system validates against a schema.
Will I get a schema or DTD?
No. The output is a well-formed XML document. If the recipient requires a specific schema, map the structure to it afterwards.
Is the XML declaration included?
Yes, with UTF-8 encoding declared, which is what most parsers expect.