ZapXMLJSON

Free Online XML ↔ JSON Converter

Converted locally in your browser — your data never leaves your device
XML Input
JSON Output
JSON output will appear here...
JSON Input
XML Output
XML output will appear here...
Ready to convert

Attribute Handling

XML attributes are prefixed with @ in JSON by default. Change the prefix in the options above. For example <tag id="1"> becomes {"@id":"1"}.

CDATA & Namespaces

CDATA sections are extracted as plain text. Namespace prefixes (e.g. ns:tag) are preserved as-is in the JSON key name, so your data round-trips cleanly.

Repeated Elements

Sibling elements with the same tag name are automatically grouped into a JSON array. Enable Compact single-child arrays to keep single items as objects rather than wrapping in a one-element array.

Also from ZapTools

Free business tools for freelancers & small teams

📄 Invoice Generator 🧾 Receipt Maker 📝 Proposal Builder 📜 Contract Generator ⚡ All 120+ Tools
Share this tool: