JSON ↔ XML Converter

Convert between JSON and XML. JSON to XML wraps each key in an element; arrays repeat the parent element name. XML to JSON collapses single-child elements into values and groups repeated elements into arrays. Round-trip preserves structure for most realistic shapes.

How to use the JSON ↔ XML Converter

Pick a direction, paste content, click Convert. Arrays in JSON repeat the parent element in XML (so {items: [1,2]} becomes <items>1</items><items>2</items>). XML-to-JSON detects repeated child elements and groups them into JSON arrays.