Integration Lab JSON Tools

JSON to XML Converter

Convert JSON into well-formed XML. Keys starting with @ become attributes and #text becomes element text.

Swap to XML to JSON

Input JSON

Empty 0 B

Output XML

Nothing to convert yet

Paste JSON into the input or drop a file onto it. The XML appears here as you type.

Waiting for input

How to use the JSON to XML

  1. Paste JSON or open a file.
  2. Set the root element name and the element used for items of a top-level array.
  3. Copy or download the .xml.

Questions

How do I create XML attributes?
Prefix the key with @, for example {"order": {"@id": "42", "#text": "Paid"}} becomes <order id="42">Paid</order>.
What happens to keys that aren't valid XML names?
Spaces and other illegal characters become underscores, and names starting with a digit get an underscore in front, so the XML always parses.
Is my data uploaded anywhere?
No. The conversion runs in your browser, so the data never reaches our server. Nothing is stored unless you choose to create a share link from the formatter.