Convert · Runs in your browser

XML to JSON Converter

Parse XML documents, RSS feeds or SOAP responses into JSON. Repeated elements become arrays automatically.

XML
Drop a file to load it
JSON
Waiting for input

How to use it

  1. Paste XML into the left editor, or upload an .xml file.
  2. Choose whether to keep attributes and detect numbers and booleans.
  3. Copy the JSON or download it as a .json file.

Attributes

Attributes are kept as @-prefixed keys (id="1" → "@id": 1), and text next to child elements or attributes is stored under #text. This matches the JSON to XML converter, so you can round-trip.

Arrays

Elements that appear more than once become arrays. Turn on “Always use arrays” for a consistent shape when some elements appear only once.

Errors

If the XML isn’t well-formed, the parser’s message (with line and column) is shown instead of the output.