sapienkit
Files never leave your browser

Convert Between XML and JSON

100% browser-basedFiles never leave your deviceFree & unlimited

Paste XML and get JSON, or paste JSON and get XML. Preserves attributes, text content, and nested structures in both directions.

Useful when integrating systems that speak different data formats, migrating configuration files, or converting API responses for easier processing in JavaScript. Handles edge cases like mixed content and CDATA.

XML Input
JSON Output
ReadyXML → JSON · Attributes prefixed with @

Frequently Asked Questions — XML / JSON Converter

Attributes are converted to JSON properties with a prefix (like @attr). Text content uses a #text key.

Yes. The conversion works in both directions, preserving the structure as closely as possible.

Namespace prefixes are preserved in the JSON keys. Full namespace URI mapping depends on the XML complexity.