Convert XML documents a JSON and vice versa instantly. Supports attributes, namespaces, CDATA, and nested elements. Gratuito, fast, and 100% client-side.
Drop file here or click to upload
This free online tool converts XML documents a 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 a 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 a 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 a any server.
Yes, within browser memory limits. For extremely large files (100MB+), consider using a command-line tool like xml2json or jq.