XML and JSON Converter
Convert XML to JSON with explicit attributes and child nodes, then convert the same structure back to XML.
Runs in your browser.
Tool settings
Result
How to use this tool
Paste XML to create an explicit node tree. To convert back, keep the name, attributes and children fields in that JSON structure.
Example input
<pets><pet id="1">Cat</pet><pet id="2">Dog</pet></pets>