Ensure your XML is well-formed before conversion. Common issues include missing closing tags, unescaped characters, and incorrect nesting. Invalid XML will produce a parse error.
XML attributes become JSON keys with a prefix (default @). For example, <user id="1"> becomes {"@id": "1"}. You can customize the prefix in the configuration.
When "Detect Arrays" is on, repeated sibling elements are grouped into JSON arrays. Turn it off if you want each element as a separate property (last value wins).
Once your JSON is ready, use Open in Editor to further edit the result in the JSON Editor, or download it for use in APIs, databases, and JavaScript applications.
Watch JSON output update instantly as you type or edit XML. No button clicking needed — the conversion happens on every keystroke.
Customize the attribute key prefix (default @) to match your preferred convention. Switch to _ or any other prefix.
XML parsing is handled by the browser's built-in DOMParser — no heavy libraries, no CDN dependencies, and accurate parsing guaranteed.
Paste your XML content or upload an .xml file. The converter instantly parses the XML structure and displays the equivalent JSON output. All processing happens in your browser — no signup required.
XML attributes are converted to JSON keys with a configurable prefix (default: @). For example, <item id="1"> becomes {"@id": "1"} inside the item object. Change the prefix in the configuration options below the converter.
Repeated sibling elements are automatically grouped into JSON arrays (when "Detect Arrays" is enabled). For example, multiple <item> elements inside a parent become an array of item objects in the JSON output.
Yes. Nested XML elements are converted into nested JSON objects. Each level of nesting becomes a child object. The converter handles deeply nested structures without any data loss.
Yes. The default attribute prefix is @ (e.g., {"@id": "1"}). You can change it to any character, such as _ (e.g., {"_id": "1"}), using the configuration options.
Yes. You can edit the XML directly in the input textarea and the JSON output updates in real time. For advanced JSON editing, click Open in Editor to work in our full-featured JSON Editor.
Click the Download JSON button in the output toolbar. The JSON content is saved as a .json file that you can open in any code editor or application. A Pro subscription is required for large files.
Yes. All processing happens 100% in your browser. Your XML data is never uploaded to or stored on any server. No backend, no tracking, no data leaves your device.