Convert XML to JSON or JSON to XML instantly. Handles attributes, arrays, and deeply nested structures.
Attributes are grouped under an @attributes key on the element's JSON object. Mixed text content lives under #text. This preserves the original XML structure during round-trips.
When a parent contains multiple children with the same tag name, the converter automatically collects them into a JSON array — so <book> repeated three times becomes a 3-element array.
No. Parsing uses the browser's built-in DOMParser. Your XML and JSON never leave your device.