Convert XML to JSON in your browser
Paste a well-formed XML document and get clean, indented JSON. The
parser uses your browser’s built-in DOMParser, so it handles real-world XML the
same way a browser does: attributes are collected under @attributes, repeated
tags become arrays, and text-only elements become plain string values.
Malformed XML is reported as a clear error instead of being silently mis-parsed. Everything runs locally in your browser — your data is never uploaded or stored.