JSON to XML

Convert JSON objects to XML. Keys prefixed with @ become attributes.

All processing on this page runs locally in your browser unless noted otherwise.

Open reverse

Input

Output

How to use

  1. Paste JSON on the left (or import a .json file).
  2. Adjust attribute prefix / namespace options, then convert.
  3. Copy or download the XML; open reverse for XML → JSON.

FAQ

How do I set attributes?

With the @ prefix on, keys like "@id" become XML attributes.

What if JSON is invalid?

Conversion stops and shows a parse error; the previous output is left unchanged until success.

Related tools