SOAP to JSON Converter
Convert SOAP XML envelopes to clean JSON. Automatically strips the SOAP wrapper and extracts the body content for SOAP 1.1 and 1.2 messages.
Last updated: May 28, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is SOAP to JSON Converter?
SOAP (Simple Object Access Protocol) is an XML-based messaging protocol widely used in enterprise web services, banking APIs, ERP integrations, and government systems. Every SOAP message is wrapped in a standardised XML envelope — a Envelope element containing an optional Header and a required Body. When you receive a SOAP response, the actual payload data is buried several levels deep inside this boilerplate wrapper.
This SOAP to JSON converter extracts the content of the SOAP Body and converts it to clean, readable JSON. It supports both SOAP 1.1 (`http://schemas.xmlsoap.org/soap/envelope/`) and SOAP 1.2 (`http://www.w3.org/2003/05/soap-envelope`), and automatically detects SOAP Fault responses so you can identify errors immediately.
How to Use SOAP to JSON Converter
Paste your SOAP XML response into the input area on the left
The tool detects whether SOAP 1.1 or 1.2 is used and shows a version badge
The JSON output (body content only by default) appears on the right instantly
Toggle "Extract Body Only" off if you want the full envelope including headers in the output
Toggle "Include Attributes" off to skip XML attributes from the JSON output
Click "Copy JSON" to copy the result or "Download .json" to save it
Common Use Cases
- Parsing SOAP API responses from banking or financial web services
- Extracting data from ERP system SOAP responses (SAP, Oracle, Microsoft Dynamics)
- Debugging SOAP Fault messages by converting them to readable JSON
- Converting legacy SOAP endpoint responses for use in modern JavaScript applications
- Testing SOAP web services and inspecting response payloads
- Migrating data from SOAP-based systems to REST/JSON APIs
Example Input and Output
A typical SOAP 1.1 GetWeather response being converted to clean JSON:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<GetWeatherResponse>
<City>London</City>
<Temperature unit="C">18</Temperature>
<Condition>Partly cloudy</Condition>
<Humidity>72</Humidity>
</GetWeatherResponse>
</soapenv:Body>
</soapenv:Envelope>{
"City": "London",
"Temperature": {
"@unit": "C",
"#text": "18"
},
"Condition": "Partly cloudy",
"Humidity": "72"
}How This Tool Works
The XML input is parsed with the browser's native DOMParser. The tool inspects the root element's namespace URI to determine the SOAP version (1.1 or 1.2). When "Extract Body Only" is enabled, it locates the Body element using getElementsByTagNameNS and recursively converts its child elements to JSON objects. Repeated siblings become arrays, attributes become @-prefixed keys, and text nodes become string values.
Technical Stack
Privacy First
SOAP parsing runs entirely in your browser. Your SOAP payloads — which commonly contain sensitive financial, healthcare, or business data — are never transmitted to our servers.
WS-Security Headers
If your SOAP envelope includes WS-Security headers (wsse:Security, xenc:EncryptedKey), those will appear in the JSON output only if "Extract Body Only" is turned off. The body-only mode skips all header elements and focuses on the business payload.

