Convert XML to JSON
Paste XML from feeds, legacy APIs or config files and get clean JSON you can use in JavaScript and modern APIs.
How to use the XML to JSON tool
- 1Paste your XML into the input box.
- 2Click convert.
- 3Copy or download the JSON.
Good to know
- Your data is processed in your browser and never uploaded.
- Malformed XML is reported as an error instead of producing broken JSON.
Frequently asked questions
Can I convert JSON to XML?
This tool converts XML to JSON only.
What happens to repeated elements?
Elements that repeat under the same parent are grouped into a JSON array.
Is my XML uploaded?
No. Parsing happens in your browser.
Related tools
JSON FormatterFormat, validate and minify JSON instantly. Paste JSON to pretty-print it with indentation or compress it. Free and private — nothing is uploaded.JSON to YAMLConvert JSON to YAML and YAML to JSON for Kubernetes, Docker Compose and CI config files. Free, private and runs in your browser.CSV to JSONConvert CSV to JSON and JSON back to CSV. Handles quoted fields with commas and line breaks. Free, private and runs in your browser.