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
- Paste your XML into the editor.
- Click "Convert" — elements become objects, repeated elements become arrays, attributes are prefixed with "@".
- 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
JSON formatter & validatorBeautify, minify and validate JSON with precise error locations.
JSON compare (diff)See exactly what changed between two JSON documents.
JSON to HTML tableTurn a JSON array into copy-ready HTML table markup.
HTML table to JSONExtract any HTML table into a clean JSON array.
Password generatorCryptographically secure passwords, generated on your device.
Merge PDF filesCombine multiple PDFs into a single document. Reorder pages exactly how you want them.