Convert XML to JSON online for APIs, feeds, configuration files, and integration debugging. Paste XML and get readable JSON output without uploading data to a server.
You need to inspect XML data in JavaScript-friendly JSON.
You are migrating XML responses into JSON-based tooling.
Input
<user id="42"><name>Ada</name></user>
Output
{
"user": {
"@attributes": { "id": "42" },
"name": "Ada"
}
}Convert XML API responses into JSON fixtures.
Debug XML feed data in a JSON editor.
Forgetting that XML attributes and text nodes need JSON property names.
Expecting mixed-content XML to become a flat JSON object.
XML attributes are grouped under @attributes.
Text content is written as #text when needed.
Repeated child elements become arrays.
Paste XML into the input editor. The tool parses the XML and renders a formatted JSON object.
Attributes are placed in an @attributes object so they do not collide with child element names.
Yes. The conversion runs in your browser.