XML input
Paste your XML below, then press Convert.
Paste XML above to begin.
Convert XML to JSON free, in seconds. Paste your XML, press Convert, and get clean JSON with attributes preserved.
Paste your XML below, then press Convert.
Elements become object keys; repeated sibling elements become arrays. Attributes are kept with an @ prefix (or merged plain), and mixed text lands under #text. The mapping is deterministic, so converting the same XML twice gives the same JSON.
Namespace prefixes are kept as part of element names (for example soap:Body). CDATA sections are treated as text. Comments and processing instructions are skipped. Very deep documents convert fine, but extremely large files may take a moment.