XML to JSON Converter
Convert XML to JSON locally. Attributes use @attributes, repeated child elements become arrays, and values stay strings. DOCTYPE is unsupported; input is limited to 50,000 UTF-16 code units.
The root element stays as the top-level key. Attributes use @attributes, repeated child tags become arrays, and values remain strings. Mixed content uses ordered #content; comments and processing instructions are omitted, and indentation-only whitespace is ignored unless xml:space="preserve". DOCTYPE declarations are rejected; schemas and external references are not validated. Runs locally without uploads. Limits: 50,000 UTF-16 code units, 256 element levels, and 5,000 elements.
Select Convert XML to JSON to produce output.