How to convert XML and JSON
Convert XML documents to JSON, or JSON objects to XML, locally in your browser with Toolora.
When to convert
APIs, SOAP payloads, and config files often mix XML and JSON. Converting locally lets you inspect a SOAP response as objects or turn a JSON mock into XML without uploading data.
Steps
1) Open XML ↔ JSON Converter at /tools/xml-json-converter. 2) Choose XML → JSON or JSON → XML. 3) Paste the document. 4) Copy the result — it updates as you type. Use XML Formatter at /tools/xml-formatter first if you only need indentation. YAML and CSV converters are different formats.
Worked example
A simple <note><to>Ada</to></note> becomes nested JSON keys. Attributes and repeated sibling tags may use arrays or special keys depending on the converter — inspect before you ship. JSON → XML of a lone array may wrap a root element. Invalid XML or JSON is rejected. Nothing is uploaded.
Privacy
Documents stay in the browser. Related: /tools/xml-formatter, /tools/json-formatter, /tools/yaml-json-converter.
Common mistakes
Expecting a perfect round-trip of mixed-content XML (text and child elements in the same parent) will disappoint — converters flatten awkwardly. Attributes may become keys with a prefix. JSON → XML of a top-level array needs a wrapper element. YAML pasted here will fail; use YAML ↔ JSON. HTML is not XML. Validate JSON with JSON Validator after XML → JSON if you will ship the object. Nothing is uploaded. Close the tab on confidential SOAP.