XML to JSON Converter

Transform XML data to JSON format — processed entirely in your browser

Instant Private Nested Support

How to Use

  1. Paste your XML into the Input box (or click Sample to try an example).
  2. Click Convert to transform to JSON.
  3. Review the JSON output and use Copy to grab it.

FAQ

XML attributes are prefixed with "@" in the JSON output. For example, <item id="1"> becomes {"@id": "1"}. Text content is placed in a "#text" key when attributes are present.

When the same child element appears multiple times, the converter automatically produces a JSON array. A single occurrence becomes a single object.

Yes. All processing happens in your browser, so the limit is your device's memory. For very large files (multiple MB), expect a brief pause.