Convert data instantly with XML to JSON. Supports multiple formats with zero data loss.
Enter your XML document in the input panel.
XML is parsed and converted to JSON structure.
Copy the formatted JSON output.
XML attributes are converted to JSON properties using a configurable prefix (default is @). This clearly distinguishes attributes from child elements in the resulting JSON structure. You can customize or remove the prefix to match your application's expected data format.
Yes, XML namespaces are fully preserved in the JSON output with their prefixes intact. The converter maintains namespace context so you can accurately reconstruct the XML if needed. Namespace URIs can optionally be included as metadata properties.
CDATA sections are seamlessly converted to plain string values in the JSON output. The CDATA wrapper is stripped while preserving the raw content inside, including any special characters or markup. This ensures the text content is properly represented without escaping issues.