RevealTheme logo

XML to JSON Converter

Convert XML documents to JSON. Attributes become @-prefixed keys; repeated tags become arrays.

What is XML to JSON Converter?

Going from XML to JSON is lossy in some ways — XML supports namespaces, processing instructions, and CDATA sections that don't have direct JSON equivalents. This converter handles the 90% case: nested elements, attributes (prefixed @), and text content (#text). For complex XML, a dedicated library may be necessary.

Frequently asked questions

What's the @ prefix?
Attributes are stored as @attrname to distinguish them from child elements with the same name.

Related tools