XML to JSON

Convert XML documents into clean, predictable JSON.

100% private. Runs entirely in your browser — nothing you enter is ever sent anywhere.

How it works — step by step

  1. Paste your XML into the editor.
  2. Click "Convert" — elements become objects, repeated elements become arrays, attributes are prefixed with "@".
  3. Copy the JSON or download it as a file.

Frequently asked questions

How are XML attributes represented?

As keys prefixed with "@" on the element's object, so <user id="1"> becomes {"user": {"@id": "1", ...}}.

What happens with repeated elements?

Sibling elements with the same name are collected into a JSON array automatically.

Is my XML uploaded?

No. The conversion uses your browser's built-in XML parser — nothing leaves your device.

More free tools