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.
Ctrl/⌘ + Enter to run
Input
Output
How to use
- Paste XML on the left (or import / load URL).
- Tune attribute / namespace options; enable live convert if needed.
- 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.