XML to JSON Converter

Parse XML documents and convert them to clean JSON structures.

Text & Data100% private

XML to JSON Converter

Parse XML documents and convert them to clean JSON structures.

// Click Convert

How it works

  1. 1
    Paste XMLEnter valid XML data.
  2. 2
    ConvertXML elements become JSON keys, text content becomes values.
  3. 3
    CopyCopy the JSON for use in modern APIs and applications.

Frequently asked questions

How are attributes handled?
XML attributes are prefixed with @ (e.g., @id, @type) to distinguish them from child elements.
What about repeated elements?
Repeated elements at the same level are automatically converted to JSON arrays.
Does it handle XML declarations?
Yes. The <?xml ...?> declaration is parsed but not included in the JSON output.

Related tools