XML to JSON
Paste XML, get JSON. Paste JSON, get XML back.
XML and JSON are both common data-interchange formats, but working across systems that use different ones means converting between them — this handles it instantly in your browser.
How it works
- Paste your dataXML with nested elements and attributes, or JSON.
- Pick a directionXML → JSON or JSON → XML, both work.
- Copy the resultAttributes are preserved as an @attributes object.
FAQ
Are XML attributes preserved?
Yes — attributes are converted into an @attributes object on the corresponding JSON node.