JSON to XML Converter

Convert JSON payloads into formatted XML in your browser, including @attribute keys and repeated arrays.

Local processingYour input stays in this browser tab.

Input

Paste a JSON object with exactly one root key

0 charactersJSON

Output

Converted XML output

Converted XML output appears here.

Waiting for JSON

Sample input and expected output

Input {"harbor":{"@region":"west","ship":["Ada","Grace"]}} becomes a harbor root with a region attribute and repeated ship elements.

Validation behavior

The converter requires valid JSON with exactly one root property. Invalid JSON and multi-root objects show errors before output is generated.