Converter · runs in your browser
XML to JSON
Paste XML (a SOAP or API response, an RSS feed, a sitemap, a pom.xml) and get JSON. Attributes are kept with an @ prefix and repeated elements become arrays.
Good to know
- Attributes become keys starting with "@", e.g. "@id".
- An element that appears more than once becomes an array; once, a single object.
- Text next to child elements is kept under "#text".
- Everything happens in your browser. Your data isn't uploaded or stored.