XML to JSON Converter

Paste XML below, or drop a .xml file. Repeated sibling elements are automatically grouped into arrays.

Legacy XML feeds, RSS-style exports, and SOAP responses are often easier to work with once they're JSON. This tool walks the XML tree and groups repeated sibling elements into arrays automatically, so you don't have to write a parser by hand.

XML input
Drop a .xml file here, or paste text into the box below
JSON output

Common questions

Does this upload my file anywhere?

No. Conversion runs entirely in your browser using the browser's built-in XML parser. Your file never leaves your device.

Does it support XML attributes?

This tool focuses on element structure and text content. Attributes on tags are not currently included in the output.

What happens with invalid XML?

If the XML can't be parsed, you'll see an error message instead of output so you can fix the source file.