XML to JSON Converter

Convert XML to JSON with attribute prefix and text-property options.

About the XML to JSON Converter

Convert an XML document into JSON. Choose the prefix used for attribute names (default "@") and the property that receives text content (default "#text"), then format the result with your preferred indentation.

Frequently asked questions

How are XML attributes converted?

Attributes become properties prefixed with the configured prefix, "@" by default.

What about repeated elements?

Elements that repeat at the same level become JSON arrays automatically.

Related tools