XML ↔ JSON Converter — Auto-Detect, Attributes Preserved, Any Size

Paste XML or JSON — format is detected automatically and converted in real-time. Attributes become @-prefixed keys, namespaces preserved. Drop large files too, nothing is uploaded.

Loading Tool...

💡Help shape DevUtils.lol

No black-box support tickets. DevUtils.lol is built for you. Report bugs directly to our public repo, or come hang out with other devs in the community.

Frequently Asked Questions

Paste anything — the tool detects XML vs JSON by structure and immediately switches conversion direction. No toggles, no guessing. You can also override manually with the Swap button.

Yes. XML attributes become @-prefixed keys in JSON (e.g., <item id="1"> becomes { "@_id": "1" }). Namespace prefixes are also preserved, ensuring compatibility with SOAP services and strict XML schemas.

Yes. Drop any XML or JSON file — conversion runs in a dedicated Web Worker, so the UI stays fully responsive even for multi-MB documents. Full output is available via Download.

No. There is no artificial cap. Unlike server-based tools that reject files over 5MB, this tool processes locally — your system memory is the only constraint.

Yes. The converter handles arbitrarily deep nesting, repeated element names (which become JSON arrays), mixed content, and CDATA sections.

No. All conversion runs in your browser via Web Workers. Your XML and JSON data never touches our servers.