XML to JSON

Convert XML data into JSON quickly and accurately. Paste XML and get pretty-printed JSON, with attributes clearly labelled. This free converter runs entirely in your browser, so your data never leaves your device.

How it works: This converter uses the browser DOMParser. Element attributes are stored under @attributes, and text mixed with child elements is stored under #text. Repeated elements with the same name become a JSON array.