TL
Tool Lab
πŸ’°Donate
πŸ’°Donate

JSON to XML

Convert JSON to XML

JSON Input
XML Output

JSON to XML Conversion Rules

JSON objects become XML elements where each key becomes a child tag. Arrays are expanded into repeated elements with the parent key name. Primitive values (string, number, boolean) become text content of the element, and null becomes a self-closing tag with a nil="true" attribute.

The root tag wraps the entire output β€” you can customize it using the field above. The output includes an XML declaration header for compatibility with XML parsers.