JRJI
Privacy-first · No upload · 100% client-side

JSON ⇄ XML

Convert JSON to pretty-printed XML — or paste XML and get JSON back. Attributes preserved, both directions on one page.

JSON
XML
Paste on either side, then pick a direction.

JSON ⇄ XML FAQ

How are JSON arrays represented in XML?

Each array element becomes a repeated XML element with the same tag name. On the way back, repeated sibling tags are folded into a JSON array.

Are XML attributes supported?

Yes. Attributes are preserved as keys prefixed with "@_" in the JSON output, and keys with that prefix become attributes when converting to XML.

Why is my output wrapped in a root element?

XML requires exactly one root element. If your JSON has multiple top-level keys or is an array, it is wrapped in a <root> element.

Is my data uploaded?

No. Both directions run entirely in your browser.