JSON to XML Converter
Convert JSON to well-formed XML with indentation, custom root element, and attribute mode.
About this tool
The JSON to XML Converter transforms any valid JSON document into properly indented, well-formed XML. Paste your JSON in the left panel and get instant XML output on the right. Customize the root element name to wrap the whole document, or leave it empty to auto-detect. Enable attribute mode to convert designated keys (those starting with @') to XML attributes rather than child elements. Array items are automatically wrapped in configurable item tags. The tool handles nested objects, arrays, nulls, booleans, and numbers correctly, escaping special characters such as <, >, and & in text nodes. Copy the result to the clipboard or download it as a .xml file. Useful for integrating with SOAP APIs, legacy enterprise systems, and any XML-based data pipeline that needs JSON input converted on the fly.
How to use
- 1 Paste valid JSON into the input textarea on the left.
- 2 Optionally change the root element name (default: 'root').
- 3 Toggle attribute mode if your JSON uses @ prefix keys for attributes.
- 4 Set the array item tag name if you want something other than 'item'.
- 5 The XML output updates instantly. Click Copy to clipboard or Download XML.