TL
Tool Lab
💰捐贈
💰捐贈

JSON to XML Converter

Convert JSON data to well-formed XML. Handles nested objects and arrays.

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.