XML to JSON
Convert XML to JSON format.
Processed locally in your browser. Nothing you enter is uploaded or stored.
- Validates the XML first (via the same parser this site's XML Validator uses), so malformed input is caught with a specific error instead of silently mis-converting.
- Repeated elements become arrays automatically.
- Runs in your browser; data isn't uploaded.
Why this is private
- Processed locally in your browser. Nothing you enter is uploaded or stored.
- Open your browser's DevTools → Network tab while using this tool — you won't see a request carrying your input, because it never leaves your device.
- Nothing you enter is uploaded to a server or shared with us — the processing happens entirely on your device.
Overview
Converts XML to JSON — useful when you need to consume a SOAP response, RSS/Atom feed, or legacy XML config from code that expects JSON.
How to use it
- 1Paste XML.
- 2The JSON output updates automatically.
Frequently asked questions
What people use it for
Consume a SOAP or legacy XML API from JSON-only codeConvert the response into JSON your app can work with directly.
Read an RSS/Atom feed as JSONConvert feed XML into JSON for easier programmatic access.
Inspect a deeply nested XML configJSON's explicit brackets can make deep nesting easier to scan than XML tags.
Related guides
- How to read JSON with a tree viewerA tree viewer turns a wall of brackets into a structure you can expand, search and copy paths from. Here's how to use one effectively.
- JSON parse errors explained: 'Unexpected token', 'Expected comma or brace', and the restWhat each common JSON error message actually means, the usual cause, and how to find the spot fast using line and column.
- How to format JSON (and actually understand the errors)JSON looks like a JavaScript object but follows stricter rules. Here's what those rules are and how to read the errors when they're broken.
Related tools
All developer toolsReady to use XML to JSON?
XML to JSON