XML to JSON

Convert XML attributes, mixed content and configurable JSON structures

Input content · XML

Limits: 32 MiB input, 128 MiB output, and 128 levels of nesting. Large inputs show a read-only preview of the first 100,000 characters. Clear the input or import a file to replace it. Conversions and downloads include the complete content.

Conversion result · JSON

External entities are never fetched; unresolved entities fail explicitly. DOCTYPE metadata can be retained. Compact mode groups names; noncompact preserves mixed-content order. Invalid tag keys use property elements.

Conversion result

How to use

Import or paste input, choose options, then convert. Download preserves complete results