Skip to content
Ovatly

XML to JSON Converter

100% PrivateData & JSON Tools

Parse XML and convert it into JSON you can use in code and tools.

Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.

Or upload an .xml file
  1. 1Paste XML text or upload an .xml file.
  2. 2Press Convert to JSON.
  3. 3Review the JSON, watching for @attributes and #text keys.
  4. 4Copy the result or download it as converted.json.

About this tool

The XML to JSON Converter parses XML with the browser's built-in DOMParser and produces JSON using a clear convention: attributes become @keys, repeated elements become arrays, and text alongside elements is kept under #text.

Related tools

Advertisement

Part of Ovatly's free tools in Data & JSON Tools.