← All tools
BROWSER · DOMParser + local JavaScript

JSON ↔ XML Converter

Convert JSON to XML or XML to JSON locally in your browser. Pretty-print output, preserve nested data and download the result without uploading your input.

✓ JSON to XML✓ XML to JSON✓ Pretty formatted output
Mapping note: XML attributes become @attributes in JSON; mixed text may use #text. JSON arrays are represented with repeated item elements.
About this tool

Bidirectional JSON and XML conversion in the browser with readable formatting and no server upload.

How it works

  1. 1Choose JSON → XML or XML → JSON.
  2. 2Paste your source text and adjust the root element if needed.
  3. 3Convert, copy or download the formatted result.

Frequently asked questions

How are XML attributes represented in JSON?

Attributes are stored under @attributes and mixed text can appear under #text.

Are arrays supported?

Yes. JSON arrays are represented with repeated item elements and repeated XML child elements become JSON arrays.

Is my data uploaded?

No. Parsing and conversion happen locally in your browser.

Related tools