format · validate · convert · runs locally

XML to JSON

Paste XML and get JSON — elements become keys, repeated tags become arrays, and text is coerced to numbers or booleans where possible. Runs in your browser.

Frequently asked questions

Does it support attributes?

It maps elements and text; XML attributes are not included. Use it for element-based XML.

How are repeated tags handled?

Repeated child tags with the same name become a JSON array.