JSON to XML Converter — Free Online Tool
Transform JSON into well-formed XML with customizable root element, pretty-printing, and optional XML declaration. Private and instant.
Your data never leaves your browser
JSON input
XML output
About this tool
JSON→XMLPretty-printCustom rootDownload XMLPrivacy-first
How to use
- Paste JSON in the input editor.
- Set the root element name and array item tag as needed.
- Toggle pretty-print and XML declaration.
- Copy or download the .xml output.
Examples
Object → XML
{"name":"ToolsCandy","active":true}<root><name>ToolsCandy</name><active>true</active></root>
Array handling
{"items":[{"id":1},{"id":2}]}Arrays become repeated item elements under the parent tag.