DeveloperTool 10
XML to JSON Converter
Turn an XML response into JSON you can inspect, store or paste into a front-end test.
XML to JSON Converter
87 / 232Result
WaitingRun the tool and the result appears here. Copy it or download it — nothing leaves this tab.
Privacy
Everything you type stays in this tab and is processed by JavaScript on your device. Nothing is uploaded, logged or stored on a server.
How to use it
Add xml in the field above. Nothing is uploaded while you type.
Press “Convert to JSON”. The json appears in the result panel instantly.
Copy the json or download the file, then close the tab.
When to use it
Inspecting responses
Read an XML API response as nested JSON instead of scanning tags.
Migration prep
See the object shape your code will need before writing a parser.
Test fixtures
Convert a small XML sample into JSON for a mock server.
Questions
Are attributes included?
No. Only element text and child elements are converted, because attribute handling varies by schema.
What if the XML is invalid?
A parser error is returned with a hint to check closing tags and quoted attributes.
Does this tool upload my data?
No. Everything runs in this browser tab with JavaScript, so xml never leaves your device.
How are XML attributes handled in the JSON output?
Attributes are not included; only element text and structure are converted. If an attribute carries data you need, move it into a child element before converting, or handle it separately.
How do repeated sibling tags become arrays?
Two or more sibling elements with the same name become an array, and a single one stays an object. The same XML therefore produces different shapes depending on how many items it holds, so test both cases in your fixture data.