Convert XML to pretty-printed JSON, with attributes and repeated elements handled correctly.
No comments yet. Be the first!
Convert XML to pretty-printed JSON, mapping attributes, repeated child elements and empty elements correctly. Parsing is done safely in your browser.
Each attribute becomes an "@attributeName" key on that element's object — kept clearly separate from child elements and text content, never conflated.
Yes — input containing a SYSTEM or PUBLIC external entity/DTD declaration is explicitly rejected before parsing, and the browser's native XML parser never makes network requests to resolve external entities in the first place.
Same-named siblings automatically become a JSON array, in document order. A tag that appears only once stays a single value rather than being forced into a one-item array.
Conversion runs entirely in your browser — nothing you paste or upload here is sent to any server.