JSON to XML Converter

Paste JSON on the left to turn it into XML you can copy into feeds, configs, and integrations.

Drop a file anywhere · up to 20 MB

Source

Free-form source input. Auto-detect tries JSON first, then XML, then YAML.

Loading editor...
Status: EmptyCharacters: 361 | Lines: 24

Result

Choose the target format for the converted output.

Loading editor...
Status: No outputCharacters: 0 | Lines: 0

Route Notes

Convert JSON into an XML element tree with a predictable structure.

The result is always wrapped in <root>, and mixed text-plus-children XML is not supported in this version.

XML Conversion Notes

XML to JSON keeps key XML details visible instead of flattening everything away.

Attributes appear as @name, and direct text appears as _text.

CDATA is preserved as text. Mixed text and child elements cannot be converted because their order would be lost.

The original XML root tag name is preserved as _rootName.

Text-only child elements stay object-shaped, so <note>hello</note> becomes { "_text": "hello" }.

JSON to XML output always uses a fixed <root> wrapper in this MVP.