XML to JSON Converter
Convert any XML document into clean JSON in one click. Attributes become @-prefixed keys, repeated elements turn into arrays, and element text is kept as values. You can copy the result or download it as a .json file.
How to use
- Paste your XML document.
- Click Convert to JSON.
- Copy the result or download it as a .json file.
Note: Conversion convention: element text becomes the value, attributes are stored under @name keys, mixed text uses #text, and repeated child tags become arrays.