ToolBuddy
In Browser

JSON ↔ XML

Convert JSON objects to XML and XML documents back to JSON. Useful for SOAP leftovers, RSS, and mixed API stacks. XML is parsed with the browser DOMParser so payloads stay on the device.

Runs in your browser. Nothing is uploaded.

Direction

0 characters · 0 lines

0 characters · 0 lines

About this tool

Convert JSON objects to a simple XML tree and XML documents back to JSON. Arrays become repeated child tags; primitives become text nodes. XML parsing uses the browser DOMParser. No XSLT host and no schema fetch.

How to use: paste JSON, pick JSON → XML, copy a <root> document. XML → JSON walks element children and coerces numbers/booleans when they look like literals. Attributes are not a first-class model; mixed content is flattened to text when there are no element children.

Example: {"user":{"id":1}} becomes <root><user><id>1</id></user></root>. Repeated <role> tags become a JSON array. parsererror from DOMParser means the XML is not well-formed.

Payloads stay in the tab. Related: XML formatter to indent the result, JSON ↔ YAML for config instead of markup. This is a structural bridge, not a lossless InfoSet round-trip.

Related Convert tools