XML to JSON
Paste XML and convert to JSON. Uses browser DOMParser. Simple mapping: one child per key or array of items.
XML to JSON
How it works
We parse XML with DOMParser, walk the tree, and build a JSON object. Repeated tags become arrays.
When to use it
Use when consuming XML APIs and you prefer working with JSON.
Frequently asked questions
Namespaces?
We use local names only. Namespace prefixes may be stripped.