MakeMyStats
Blog
← All tools

JSON \u2194 XML Converter

Bidirectional live conversion between JSON and XML. Edit either side and the other updates automatically. Your data never leaves your browser.

Convention: XML attributes are prefixed with @_ in JSON (e.g. "@_id": "123"). Text content uses the #text key.
JSON
XML

How to use JSON \u2194 XML Converter

  1. 1

    Paste either format

    Paste JSON on the left or XML on the right. Both panes update each other live.

  2. 2

    Note the conventions

    Attributes are prefixed @_ in JSON. Mixed text content lives under #text. Arrays in JSON become repeated child elements in XML.

  3. 3

    Download or copy

    Save .json or .xml using the download buttons.

Frequently asked questions

Does this tool upload my data?
No. Every parse, transform, and download runs entirely in your browser using JavaScript and Web Workers. The file never leaves your device — there is no upload endpoint and no server-side processing.
How are XML attributes represented in JSON?
Attributes are added as keys prefixed with @_ on the parent element's JSON object — for example <node id="1"/> becomes {"node":{"@_id":"1"}}.
What about XML namespaces?
Namespaces are preserved as ordinary attributes (xmlns, xmlns:foo). The tool doesn't resolve qualified names against their declarations.