Convert · in-browser

XML to JSON Converter

Convert XML documents into structured JSON with attributes, nesting, and arrays preserved. Ideal for API payloads and data pipelines.

XML attributes get an @ prefix and repeated elements become JSON arrays.

All conversion happens locally in your browser using modern canvas APIs — files never leave your device.

Key facts

XMLTag-based markup with attributes and nested elements
JSONHierarchical key-value format native to JavaScript
Typical useXML feeds and configs → API-ready JSON
AttributesPrefixed with @ (for example @id) to avoid collisions

Other conversions