About JSON to XML
Use the JSON to XML converter for a simple data-oriented document. You can convert JSON to XML with a root element of your choice, map arrays to repeated sibling tags, and represent attributes with @_ keys. Review the XML against the destination's schema separately.
How to build an XML document from JSON
- Paste a JSON object containing the intended root contents.
- Set a simple root name, using @_ keys for attributes or #text for element text when needed.
- Select Process, inspect the generated XML, and download converted.xml.
A practical example
- Input
{"name":"Ada"}- Result
<root> <name>Ada</name> </root>
The configured root wraps the object; it is not inferred from a schema.
Supported input and limitations
- Input is limited to 1 MB, 100,000 values, and 80 levels. The root contents must be an object; names use ASCII letters, digits, underscore, dot, or hyphen and cannot start with a digit. Reserved __proto__ element names are rejected.
- Namespaces, custom declarations, mixed-content ordering, and XSD validation are not supported. Attributes and #text must be scalar; null and empty values do not retain distinct JSON types in XML.
Processing happens on your device. Read about local processing and optional workspace recovery.
Frequently asked questions
How do I create XML attributes from JSON?
Use keys such as "@_id": "01". A #text key supplies the element text when attributes or child elements are also present.
How are JSON arrays converted into XML?
An array value under a property emits repeated elements with that property's name. Empty arrays do not create a typed JSON array in XML.