Convert XML documents to JSON and vice versa instantly. Supports attributes, namespaces, CDATA, and nested elements. Free, fast, and 100% client-side.
Drop file here or click to upload
This free online tool converts XML documents to JSON format and vice versa. It handles XML attributes, text nodes, CDATA sections, nested elements, and namespaces. All processing happens entirely in your browser — no data is sent to any server. Perfect for API development, data migration, configuration management, and debugging.
Yes. Namespaces are preserved in element and attribute names (e.g., "ns:element" or "@ns:attribute").
Attributes are converted to object properties with a configurable prefix (default "@"). For example, <user id="123"> becomes { "@id": "123" }.
Absolutely. All conversion happens entirely within your browser. No XML or JSON data is transmitted to any server.
Yes, within browser memory limits. For extremely large files (100MB+), consider using a command-line tool like xml2json or jq.