XML to JSON Converter
Convert XML to JSON or YAML online for free. Attributes, nested elements and repeated tags handled automatically — private in-browser conversion.
JSON output
{
"catalog": {
"book": [
{
"@id": "1",
"@lang": "en",
"title": "Effective Java",
"price": "45.50"
},
{
"@id": "2",
"@lang": "hu",
"title": "Clean Code",
"price": "38.00"
}
]
}
}About XML to JSON Converter
Convert XML documents to JSON or YAML. Attributes are prefixed with @, repeated elements become arrays, and mixed text content is kept under #text.
Copy the result or download it as a file. All conversion happens client-side, so your data stays private.