JSON to XML Converter - Transform JSON to XML Online
Convert JSON to XML
Paste JSON on the left and well-formed, indented XML appears on the right with an XML declaration and a root element. Name the root element to match what the receiving system expects. The conversion runs in your browser.
Example
{"id": 7, "first name": "Ann", "tags": ["admin", "ops"], "manager": null} with the root element set to user, becomes:
<?xml version="1.0" encoding="UTF-8"?>
<user>
<id>7</id>
<first_name>Ann</first_name>
<tags>
<item>admin</item>
<item>ops</item>
</tags>
<manager />
</user>
The key with a space became first_name, the array became
item children, and null became an empty
element. If the schema you are targeting wants
<tag> instead of <item>, or
wants id as an attribute, rename them in the output.
When You Need XML
SOAP web services, many payment and banking integrations, Android string resources and older enterprise systems still take XML. A common job is turning a JSON test fixture or API response into a request body for one of those. To read an XML response back as JSON, use the XML to JSON converter.
Related Tools
JSON to YAML Converter
Convert JSON data to clean, readable YAML format instantly.
JSON to CSV Converter
Flatten JSON arrays into downloadable CSV spreadsheets in one click.
YAML to JSON Converter
Convert YAML configuration files to JSON format instantly.
XML to JSON Converter
Parse XML documents and convert them to JSON objects.