JSON ↔ XML
Convert between JSON and XML formats
Input
About JSON ↔ XML
JSON → XML — converts any JSON object or array into well-formatted XML with 2-space indentation. Arrays and multi-key objects are auto-wrapped in a <root> element. Use @key for attributes.
XML → JSON— parses XML into a JSON object using the browser’s native DOMParser. Repeated elements become arrays, attributes get an @ prefix.