Document

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.

JSON to XML
Paste your JSON below
Upload File
Paste JSON
Click to upload or drag & drop a .json file
Root element name
Keys prefixed with @@ (e.g. @@id) become XML attributes. Arrays become repeated child elements. null values get a nil="true" attribute.
0%
Download XML

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.

  1. Paste your JSON, or upload the file.
  2. Set the root element name.
  3. Convert to XML.
  4. 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.