format · validate · convert · runs locally

JSON to XML

Convert JSON into XML — each key becomes an element, arrays repeat the element, and text is escaped. Runs in your browser.

Frequently asked questions

How are JSON arrays represented in XML?

Each array element is emitted as a repeated element with the same tag name.

Is the output valid XML?

Yes — special characters are escaped and the output is well-formed with an XML declaration.