All tools/Convert

JSON ↔ XML

Runs locally

Convert between JSON and XML with live preview. Choose a root element name, pretty output, instant copy.

JSON input
XML output
XML preview appears here.
Root element

Convert between JSON and XML in both directions, right in your browser. Paste JSON to get well-formed XML, or paste XML to get clean JSON — handy for working with legacy APIs, config files, and SOAP services. Nothing is uploaded.

How to convert JSON and XML

  1. 1Paste JSON to convert to XML, or XML to convert to JSON.
  2. 2The output is generated and formatted instantly.
  3. 3Copy the result into your code or config.

Bridging JSON and XML systems

Plenty of enterprise and legacy systems still speak XML, while most modern APIs use JSON. Converting between them lets you connect the two without writing boilerplate parsing code — paste what you have and get the other format back, properly structured and indented.

Frequently asked questions

How do I convert JSON to XML?
Paste your JSON into the tool and it produces well-formed, indented XML you can copy. The conversion also works in reverse, from XML to JSON.
Can I convert XML back to JSON?
Yes. Paste XML and the tool returns the equivalent JSON structure.
Is my data uploaded during conversion?
No. Everything is converted locally in your browser.