Diysb Tools

JSON to XML

Convert JSON data to XML format. Transform structured JSON objects into well-formed XML documents.

JSON Tools
Input JSON
Output XML
Tool options
XML output indentation
Use spaces for indentation
Use spaces to visualize the XML hierarchy
Use tabs for indentation
Use tabs to visualize the XML hierarchy
No indentation
Output XML without any indentation
XML meta information
Add meta tags at the beginning of XML output
JSON to XML Examples

Basic JSON to XML

Convert a simple JSON object into an XML format.

{ "users": [ { "name": "John", "age": 30, "city": "New York" }, { "name": "Alice", "age": 25, "city": "London" } ] }
{ "users": [ { "name": "John", "age": 30, "city": "New York" }, { "name": "Alice", "age": 25, "city": "London" } ] }
<root> <users> <name>John</name> <age>30</age> <city>New York</city> </users> <users> <name>Alice</name> <age>25</age> <city>London</city> </users> </root>
<root> <users> <name>John</name> <age>30</age> <city>New York</city> </users> <users> <name>Alice</name> <age>25</age> <city>London</city> </users> </root>
XML output indentation
Use spaces for indentation
Use spaces to visualize the XML hierarchy
Use tabs for indentation
Use tabs to visualize the XML hierarchy
No indentation
Output XML without any indentation
XML meta information
Add meta tags at the beginning of XML output