Convert JSON into XML quickly with this free online JSON to XML Converter. Load your JSON by typing or pasting it into the input field, or import a JSON file from your local storage. You can specify a custom root element, set the element name used for JSON arrays, and select how the XML should be indented.
When the process is complete, the converted XML is ready to be copied or saved to your device. If your JSON is invalid, use our JSON Validator to identify errors or our JSON Formatter to organize the data before converting it.
JSON To XML Converter
Converted XML
Key Features Of This Tool
- Converts JSON data into well-structured XML with accurate formatting.
- Supports both direct JSON input and JSON file uploads for quick conversion.
- Lets you choose the character encoding used when processing your JSON file.
- Offers multiple XML formatting options, including 2-space, 3-space, 4-space, tab-indented, and compact output.
- Allows you to specify a custom name for the root XML element.
- Lets you define the element name used for JSON arrays in the generated XML.
- Copy the generated XML to your clipboard with a single click or download it for later use.
JSON To XML Conversion Example
JSON Document
[
{
"id": 101,
"name": "Laptop",
"category": "Electronics",
"price": 850.00
},
{
"id": 102,
"name": "Office Chair",
"category": "Furniture",
"price": 120.00
},
{
"id": 103,
"name": "Wireless Mouse",
"category": "Accessories",
"price": 25.50
}
]
Converted XML
<?xml version="1.0" encoding="UTF-8"?>
<root>
<element>
<id>101</id>
<name>Laptop</name>
<category>Electronics</category>
<price>850</price>
</element>
<element>
<id>102</id>
<name>Office Chair</name>
<category>Furniture</category>
<price>120</price>
</element>
<element>
<id>103</id>
<name>Wireless Mouse</name>
<category>Accessories</category>
<price>25.5</price>
</element>
</root>