Convert XML into JSON format in the browser.
Converts an XML document into a JSON structure. Element names become keys, repeated elements become arrays, and attributes are stored under @attributes.
Input: <user id="1"><name>Ada</name></user>
Output: { "user": { "@attributes": { "id": "1" }, "name": "Ada" } }1. Paste XML into the input.
2. Click Convert (or blur the input) to generate JSON.
3. If you see “Invalid XML”, check for unclosed tags or invalid characters.