Skip to main content

JSON to XML Converter

Convert rooted JSON to XML locally. Arrays repeat elements, @attributes maps attributes, and #content preserves mixed order. Namespace prefixes are unsupported except xml:space.

Use one top-level object property as the root element. Arrays repeat child elements; @attributes maps scalar attributes, #text sets simple text, and ordered #content supports mixed text and child elements. Null becomes empty content and empty arrays emit no elements. XML has no JSON types; numbers and booleans become text. Namespace prefixes are unsupported except xml:space, which preserves whitespace. Comments, CDATA, and DTDs are unsupported. Processing stays in your browser. Limits: 50,000 input code units, 256 nesting levels, 2,000 nodes, and 200,000 output code units.

Select Convert JSON to XML to produce output.

Was this tool helpful?