JSON to XML
Convert JSON to XML for legacy APIs, feeds, and document formats. Every key becomes an element and arrays become repeated elements. JSON has no attributes, so none are invented; the tool states this clearly rather than pretending the conversion is richer than it is.
JSON
XML
Result will appear hereReady. Press Convert or Ctrl+Enter.
How to use the JSON to XML
- Paste JSON into the input pane.
- Optionally set the root element name.
- Press Convert and copy the XML.
Example
The tags array becomes repeated tag elements.
{
"name": "json-utils",
"version": "1.0.0",
"private": false,
"tags": ["json", "tools"],
"author": { "name": "Ada", "active": true },
"score": 9.5,
"notes": null
}Frequently asked questions
How are arrays handled?
Each array item becomes its own element with the same name, the standard convention for JSON to XML.
Can keys become attributes?
Not automatically. Attribute mapping is ambiguous, so every key becomes an element. The XML to JSON tool reads attributes back as @_ keys.