Paste your JSON
XML Output
XML output appears here…
What This Tool Does
The JSON to XML Converter transforms JSON data into well-formed XML markup. JSON objects become XML elements, arrays generate repeated sibling elements, and all special characters are properly escaped. The output includes an XML declaration header and is ready to use in any XML-aware application or API.
How to Use
1. Paste your JSON into the input box or click Sample to load an example.
2. Set your preferred root element name (default is "root").
3. The XML generates automatically as you type.
4. Click Download XML to save the file or Copy Output to copy it.
Frequently Asked Questions
What JSON types are supported?
Objects, arrays, strings, numbers, booleans, and null values are all supported. Arrays generate repeated XML elements with the array key as the tag name (or "item" if the parent is an array).
Can I customise the root element name?
Yes — use the Root Element field to set any valid XML tag name for the document root. The default is "root".
Is the output valid XML?
Yes — the tool generates well-formed XML with proper escaping of special characters (&, <, >, ", '). It does not generate an XML schema or DTD.
Is my data sent to a server?
No. The conversion runs entirely in your browser using JavaScript. Nothing is transmitted to our servers.