Paste your XML
Any well-formed XML document or fragment works.
Paste XML and get clean, pretty-printed equivalent JSON — attributes, text nodes and repeated tags are all handled correctly.
Any well-formed XML document or fragment works.
Your browser's native XML parser builds the DOM tree, which is then converted to JSON.
Grab the pretty-printed JSON or save it as a .json file.
Each attribute becomes a key prefixed with @, for example an id="5" attribute becomes "@id": "5" in the resulting object.
When an element has multiple children with the same tag name, they are collected into a JSON array instead of overwriting each other.
No. Parsing and conversion happen entirely in your browser using the native DOMParser API; nothing is sent to a server.