XML to JSON Converter — Free Online Tool
Parse XML and convert it to a JSON representation. Supports attributes (prefixed with @), nested elements, repeated elements as arrays, and mixed content.
100% client-side. No uploads. Your data never leaves your browser.
How to use XML to JSON Converter
- Paste XML.
- Click Convert.
- Copy or download the JSON.
Frequently Asked Questions
How are XML attributes handled?
Attributes are included in the JSON object with an @ prefix, e.g., <book id='1'> becomes { "@id": "1" }.
What happens with repeated elements?
Repeated elements at the same level are converted to a JSON array.
Related tools
Browse all free tools · theproductguy.in