XML to JSON

Convert XML to JSON with attribute prefix, namespace and array options.

All processing on this page runs locally in your browser unless noted otherwise.

Open reverse

Input

Output

How to use

  1. Paste XML on the left (or import / load URL).
  2. Tune attribute / namespace options; enable live convert if needed.
  3. Copy or download the JSON; open reverse for JSON → XML.

FAQ

How are XML attributes mapped?

With the @ prefix enabled (default), attributes become "@name" keys in JSON.

Are comments kept?

No — JSON cannot represent XML comments; they are dropped during conversion.

Related tools