XML to JSON converter
Convert an XML document into a JSON object — elements keyed by name, repeated siblings as arrays, attributes under @.
How to use
- Paste the XML.
- Convert it.
- Copy or download the JSON.
What it supports
Element children become object keys, same-name siblings become arrays, attributes carry an @ prefix, and mixed text lands under #text. Comments, processing instructions, and doctype are dropped. Input up to 300,000 characters.