XML ↔ JSON Converter

Convert XML documents to JSON and JSON objects back to XML. Handles attributes, arrays, nested elements, and text nodes. Useful for API migration and data interchange.

XML to JSON Conversion Notes

XML and JSON have different structural models. XML supports attributes and mixed content (text + child elements in the same node); JSON does not. This tool uses a common convention: XML attributes are prefixed with @ in the JSON output, repeated sibling elements become arrays, and text-only elements become plain string values.

Related tools