Integration Lab JSON Tools

XML to JSON Converter

Convert XML into JSON. Repeated elements become arrays, attributes become @keys, and mixed text is kept as #text.

Swap to JSON to XML

Input XML

Empty 0 B

Output JSON

Nothing to convert yet

Paste XML into the input or drop a file onto it. The JSON appears here as you type.

Waiting for input

How to use the XML to JSON

  1. Paste XML or open an .xml file.
  2. Choose whether to keep attributes and detect numbers.
  3. Copy or download the JSON, or open it in the formatter.

Questions

How are repeated elements handled?
Two or more sibling elements with the same name become an array, so <item/><item/> turns into "item": [ … ].
What if my XML has an error?
The browser's XML parser reports the problem and its line, and nothing is converted until it is fixed.
Is my data uploaded anywhere?
No. The conversion runs in your browser, so the data never reaches our server. Nothing is stored unless you choose to create a share link from the formatter.