SimplConvert

JSON to XML converter

Convert JSON into well-formed, indented XML.Runs in your browser, nothing uploaded

Loading the tool…

About JSON to XML

Paste JSON and get well-formed XML for a SOAP service, a legacy system, a feed or any tool that only reads XML. The result is indented so it is easy to read and check.

Each key becomes a tag, arrays become repeated tags, and keys that start with @ become attributes. Characters like & and < are escaped so the XML is always valid.

How to use it

  1. Paste your JSON or open a .json file. The XML appears as you type.
  2. Choose the indent and whether to add the <?xml ?> declaration.
  3. Copy the XML or download it as an .xml file.

Root element

XML needs exactly one root element. When your JSON is an object with a single key, that key becomes the root. Otherwise everything is wrapped in <root>, and a top-level array becomes <root><item>…</item></root>.

Questions

What happens to keys that are not valid tag names?

Spaces and symbols are replaced with underscores, and a name that starts with a number gets an underscore in front, so "2nd place" becomes <_2nd_place>.

How do I make an attribute?

Start the key with @. {"price": {"@currency": "INR", "#text": 299}} becomes <price currency="INR">299</price>.

Is my data uploaded?

Everything happens inside your browser. Your file is never uploaded to a server, so it stays private and the tool keeps working even on a slow connection.