XML Formatter
Format well-formed XML with indentation while preserving mixed text and element content.
DeveloperConvert XML elements, attributes and ordered child nodes into a JSON tree.
Your result will appear here.
<item size="L">Tea</item>
{
"name": "item",
"attributes": {
"size": "L"
},
"children": [
{
"text": "Tea"
}
]
}Attributes sit under attributes. Repeated elements and text stay in the children array in their original order.