Convert
XML to JSON Converter
Convert XML elements and attributes into inspectable JSON without resolving external entities.
✓ Free✓ No sign-up✓ Local session
XML inputXML
JSON outputJSON
How it works
Use XML to JSON in three steps
- 01
Paste an XML document.
- 02
Convert it to JSON.
- 03
Inspect attributes, text, and repeated nodes.
Quick example
From input to useful output
Convert XML elements and attributes into inspectable JSON without resolving external entities.
<team name="platform"> <member active="true">Maya</member> <member active="false">Noah</member> </team>
Common questions
XML to JSON Converter FAQ
Are XML attributes preserved?+
Yes. Attributes are grouped under an @attributes property in the output.
Are external XML entities loaded?+
No. DOCTYPE declarations and external entities are rejected for safety.