JSON to XML

Convert JSON into XML.

Loading tool…
Try next →JSON FormatterFormat and validate JSON.

About JSON to XML

JSON to XML converts a JSON value into an XML document. It is handy when a system, an older API, or a config format expects XML and the data you have is in JSON.

The conversion runs entirely in your browser, so the JSON you paste is turned into XML on your own device and never uploaded to a server. It is free, needs no account or sign-up, has no usage limits, and there is nothing to install.

Frequently asked questions

Is JSON to XML free, and do I need to sign up?
Yes, it is free and no account or sign-up is needed. There are no usage limits.
Is my JSON sent to a server?
No. The tool builds the XML in your browser, so your JSON is processed on your own device and nothing is uploaded. Your data stays with you.
How do I use it, and what do I get?
Paste valid JSON into the box and the tool returns an XML document you can copy out. The output is plain XML text you can save or use elsewhere.
How are arrays and objects turned into XML?
Object keys become element names, and nested objects become nested elements. A list in your JSON becomes a set of repeated elements, so the structure carries over.
What should I watch out for?
XML tag names have rules, so keys that start with a number or contain spaces or unusual characters may not map cleanly. It also helps to have a single top-level object, since XML needs one root element.