Format converter
JSON ↔ XML, attribute-aware.
Drop in JSON and get well-formed XML with proper indentation. Or paste XML and pull out a clean JSON tree. Attributes survive the round trip.
Runs entirely in your browser
Attribute-aware
Keys prefixed with @_ become XML attributes, mirroring fast-xml-parser conventions.
Round-trip safe
XML → JSON → XML preserves structure for common documents. Mixed-content edge cases are flagged.
Indented output
Two-space indent by default, configurable via the Indent dropdown in the status bar.
Privacy-first
All conversion runs locally in your browser via the WebAssembly-friendly fast-xml-parser library.
FAQ
Why fast-xml-parser?
It's the fastest pure-JS XML parser in the ecosystem, used by many serverless tools. Works without a DOM, so it ships fine in a static site.
Do XML namespaces survive?
Yes — they're preserved as object keys with the prefix intact, so xmlns:foo='…' becomes a key in the JSON tree.
What about XML attributes?
Attributes show up as @_<name> keys on the parent object. Setting them in JSON output emits proper XML attributes.