XML to JSON Converter
Paste XML or open a file to convert it to JSON. Attributes become @name keys, repeated elements become arrays, and CDATA and namespaces are preserved. Invalid XML is reported with the exact line and column.
JSON ⇄ XML Converter
Keys starting with @ are attributes and #text is an element's text, e.g. { "price": { "@currency": "EUR", "#text": 9.99 } } ⇄ <price currency="EUR">9.99</price>. Lists become repeated elements.