XML to JSON Converter

Convert your XML data to JSON format instantly. Supports complex nested structures, attributes, and custom formatting options.

Conversion Options

XML Input

JSON Output

How to Use

1. Input XML

Paste XML data or upload an XML file. Supports complex nested structures and attributes.

2. Configure Options

Set conversion options like attribute handling and output formatting.

3. Convert & Download

Convert to JSON and download the file or copy to clipboard.

Supported XML Features:

  • Attributes: Converted to @attributes object
  • Nested elements: Preserved as nested JSON objects
  • Repeated elements: Converted to JSON arrays
  • Mixed content: Text content preserved as #text
  • CDATA sections: Handled as regular text content
  • Namespaces: Preserved in element names