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

  1. 1Paste your XML into the input box.
  2. 2Click convert.
  3. 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.