JSON to XML
Build well-formed XML from the documented JSON mapping.
Input & settings
How to use this tool
Paste valid JSON, convert it and inspect the resulting XML elements. Check how object keys, arrays, null values and scalar types are represented before importing the document elsewhere.
Limits and behavior
Exactly one root property required. Attributes use @_ and text uses #text. Valid XML element/attribute names required. Scalar text is escaped. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.
Convert JSON structure to XML
Turn JSON values into XML markup using the expected mapping rules for elements, attributes and text.
Will any JSON document recreate an original XML file exactly?
No. XML has namespaces, order and mixed-content features that may not round-trip through arbitrary JSON.
Related tools: xml to json ·
A JSON object and an XML tree are different models
For {"person":{"name":"Mira"}}, expect XML representing a person element containing a name. The exact element names and array rules follow this converter's supported mapping.
Important: JSON arrays, nulls and numbers do not map uniquely to XML without conventions. Validate the result against the receiving system's expected XML structure.