Nifty / Tools / Convert

JSON to XML

Convert JSON to indented XML. Keys starting with @ become attributes.

json-to-xml
JSONDrop a file here
XML
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the JSON to XML

  1. Paste JSON on the left.
  2. Choose the indentation.
  3. Copy the XML.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

How do I make an attribute?

Start the key with @, for example {"book": {"@id": "1", "title": "X"}} becomes <book id="1"><title>X</title></book>.

Related tools