XML to JSON Converter
Parse complex XML documents, RSS news feeds, SOAP messages, and SVG vector code into modern, clean JSON objects.
XML Parsing Options:
Attr Prefix:
Text Node Key:
Raw XML Payloadxml
28 lines1494 chars1.5 KB
Ready•xml
Generated JSON Treejson
{}1 lines2 chars2 B
Ready•json
Understanding Modern XML Transformation
Attribute vs. Element Disambiguation
In XML, an element can have attributes (<user id="1">) and child tags (<id>1</id>). Our converter applies an attribute prefix like @_ to ensure keys never collide.
Automatic Repeating Array Detection
When sibling elements share identical tag names (e.g., multiple <item> tags in an RSS channel), they are automatically grouped into a clean JavaScript array.
Safe In-Browser DOMParser
Uses the browser's sandboxed DOMParser API, isolating parsing from network entities and mitigating Billion Laughs XML entity expansion threats.