What is XML ↔ JSON Converter?
XML and JSON differ in how they represent attributes, text nodes, namespaces, ordering and repeated elements. This tool maps XML attributes to @name, text to #text and repeated child tags to arrays. It provides a convenient interchange format, not a lossless round trip: comments, namespaces, mixed-content ordering and specialized XML structures may not survive conversion.
How to use this tool
- Choose XML → JSON or JSON → XML and paste the source document.
- Convert and inspect attributes, repeated elements, and text values.
- Copy or download the result, checking structural fidelity for your target application.
Example
<person id="1"><name>Ada</name></person> → {"person":{"@id":"1","name":"Ada"}}