XML
XML ↔ JSON
Convert between XML and JSON. Attributes, text nodes, and nested elements preserved.
Runs entirely in your browser · Your input is never transmitted
INPUT
0 BReady
OUTPUT
Ready—
How to use
- Paste XML or JSON.
- Toggle direction.
- Copy the result.
Frequently asked
How are attributes represented?
XML attributes appear as '@attrName' keys in the JSON object. Element text content uses '#text'.