🔄

XML to JSON

Convert XML data to clean JSON format. Handles attributes, namespaces, and nested elements.

📂

Drop a file here, or click to browse

XML files supported

How to use XML to JSON

  1. Drop an .xml file into the box.
  2. Click XML to JSON.
  3. Download the formatted JSON file.

Good to know

Frequently asked questions

How are XML attributes converted?

An attribute such as id="5" becomes "@id": "5" inside that element's object, so it stays separate from child elements.

What about repeated tags?

If an element has several children with the same name, such as many <item> tags, they are grouped into an array.

Are attributes on elements with only text kept?

No. An element with no child elements becomes its plain text, and its attributes are dropped. Check this if your data relies on them.

Is my file stored?

Your file is uploaded over HTTPS, processed on our server and deleted as soon as the result is sent back. We never keep a copy.