Convert XML documents and fragments to JSON for APIs, SOAP, RSS, sitemaps, configs, and dev tasks.
XML to JSON is a free online converter that transforms XML documents and fragments into JSON for APIs, scripts, tests, mock data, integrations, and debugging. It handles SOAP responses, RSS/Atom feeds, sitemaps, XML configs, and legacy APIs. The tool runs in your browser and does not send data to the server.
Choose a related tool for the next step.
Data passed between tools is kept only in the current browser session.
XML to JSON converts XML documents and fragments into JSON for APIs, scripts, tests, mock data, integrations, and debugging. The tool is useful when working with SOAP responses, RSS/Atom feeds, sitemaps, XML configs, and legacy APIs.
You can choose formatted or minified JSON output, configure how attributes are handled (in _attributes, with @ prefix, or ignored), how repeated tags become arrays, how CDATA is preserved as text, and how namespace prefixes are carried through. Complex XML constructs, mixed content, and namespace-aware scenarios can produce ambiguous results, so the output should be reviewed before use.
All processing is done locally in the browser. Your data is not sent to the server.