Home / XML to JSON

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

  1. Paste your dataXML with nested elements and attributes, or JSON.
  2. Pick a directionXML → JSON or JSON → XML, both work.
  3. 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.