Convert XML to JSON instantly in your browser. Supports nested elements, attributes and CDATA. Bidirectional — swap to JSON→XML in one click. 100% client-side.
The XML to JSON converter parses XML documents using fast-xml-parser and outputs clean, well-structured JSON. Nested XML elements become nested JSON objects, repeated elements produce JSON arrays, and XML attributes are preserved as JSON properties. Both editors stay live — edit either side and the other updates in real time. Swap to JSON→XML to reverse the direction at any point.
QAre XML attributes included in the JSON output?
Yes — XML attributes are preserved as JSON fields. By default fast-xml-parser uses an `@_` prefix for attribute names to distinguish them from element names.
QWhat happens with repeated XML sibling elements?
Repeated sibling elements with the same tag name are grouped into a JSON array. A single element remains a JSON object.
QIs my data sent to a server?
No. All conversion runs in a Web Worker inside your browser. Nothing is transmitted to any server.