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.
JSON to XML conversion can fail when pasted JSON contains JavaScript-style syntax. The built-in repair flow can fix common problems such as missing quotes around property names, single-quoted strings, smart quotes, comments, trailing commas, duplicate commas, missing commas, unfinished arrays, and safe missing braces or brackets.
Successful repairs show the issue count, fixed count, confidence score, processing time, fix summary, and a before and after JSON preview before the XML output is regenerated.
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.