⇄
XML to JSON
Runs in your browserInput
Output
Ready — zero server calls
Related Tools
How to Use
- Paste your XML into the input field.
- Click Convert to transform it to JSON.
- Copy the JSON output for use in your application.
Convert XML to JSON
Transform XML documents into clean JSON. The converter handles attributes (as @prefixed keys), nested elements, and automatically creates arrays when multiple sibling elements share the same tag name.
Conversion Rules
Attributes become @attrName keys, text-only elements become direct string values, mixed content uses #text, and repeated child elements become arrays. Numbers and booleans are automatically coerced from string values.