XML to JSON Converter
Convert XML to JSON instantly, live as you type.
Converts live as you type, entirely in your browser. There's no single official XML-to-JSON standard — repeated sibling elements with the same tag name become an array, the most common convention. Invalid XML shows the parser's exact error message.
Need the opposite? Use JSON to XML Converter
What is XML to JSON Converter?
Paste XML and get an equivalent JSON document instantly, using your browser's native XML parser rather than a hand-rolled one, so parsing behaves the same way a browser would treat the markup. There's no single official XML-to-JSON standard — repeated sibling elements with the same tag name become an array, the most common convention followed by most other XML-JSON converters, so results are easy to reason about if you've used a similar tool before. This is handy for working with legacy APIs or config formats that only speak XML when the rest of your tooling expects JSON — SOAP responses, RSS/Atom feeds, or an old settings file. Conversion happens live as you type, entirely in your browser; nothing you paste is sent to a server.
FAQ
Sibling elements sharing a tag name become a JSON array under that key — the same convention this site's JSON to XML Converter uses in reverse.
The tool shows the browser parser's exact error message.
Yes — attributes and text content are both carried over into the resulting JSON structure, not just element names and nested tags.
Yes — see the paired JSON to XML Converter, which uses the same array convention in reverse.