Loading...
Loading...
Convert JSON objects and arrays into clean XML for APIs, feeds, integrations, and legacy systems.
Elements
0
Attributes
0
Input Size
0 B
Output Size
0 B
Drop a JSON file here
or use the upload button inside the JSON editor.
JSON Input
XML Output
This converter parses your JSON, creates XML elements from object keys, wraps arrays with repeated item elements, and escapes XML-sensitive characters automatically.
Input JSON example:
{
"catalog": {
"@version": "1.0",
"book": [
{
"@id": "bk101",
"title": "Clean APIs",
"author": "Alice Johnson",
"price": 29.99,
"available": true
},
{
"@id": "bk102",
"title": "JSON Workflows",
"author": "Bob Smith",
"price": 34.5,
"available": false
}
]
}
}Output XML example:
<catalog version="1.0">
<book>
<item id="bk101">
<title>Clean APIs</title>
<author>Alice Johnson</author>
<price>29.99</price>
<available>true</available>
</item>
<item id="bk102">
<title>JSON Workflows</title>
<author>Bob Smith</author>
<price>34.5</price>
<available>false</available>
</item>
</book>
</catalog>| Feature | Explanation |
|---|---|
| @attribute Keys | JSON keys beginning with @ become XML attributes on the current element. |
| #text Keys | A #text or _text key becomes text content inside the current XML element. |
| Formatted and Minified Output | Generate readable XML for debugging or compact XML for API requests. |
| Custom Root Element | Wrap generated XML inside your own root element when your API needs one. |
Yes. It is free to use and converts JSON to XML directly in your browser.
No. JSON parsing and XML generation happen client-side in your browser.
Use keys that start with @, such as @id or @version. The converter turns them into XML attributes.
Yes. Arrays are converted into repeated item elements and formatted with indentation.