JSON ↔ XML Converter
Convert between JSON and XML — round-trippable for nested objects, arrays and primitives.
Quick answer: Convert between JSON and XML — round-trippable for nested objects, arrays and primitives.
Last updated
Frequently asked questions
- Why are arrays sometimes mis-detected on XML → JSON?
- An XML element appearing exactly once becomes an object, not a single-item array. If you need an array always, post-process the result or wrap repeated elements in a parent container.
- What about XML attributes?
- We don't currently model attributes — only element content and child elements. For attribute-heavy XML (SVG, XAML) the conversion is lossy.
- Will mixed content (text + elements) survive?
- Partially — text is preserved but the order of mixed text/elements may change. JSON has no native mixed-content model.
- Are namespaces preserved?
- Element names retain their namespace prefix (e.g. <code>soap:Envelope</code>) but namespace declarations are lost on the JSON side.
- Are my files uploaded?
- No — both directions run entirely in your browser.