XML to JSON Converter

Convert XML data to formatted JSON with customizable indentation.

How to Use

Paste your XML data into the input box and click "Process". The tool will convert your XML to JSON format. XML attributes are converted to properties with @ prefix, and text content is stored under #text key.

Examples

Simple XML

Convert basic XML to JSON

<user><name>John Doe</name><age>30</age></user>

XML with Attributes

Convert XML with attributes

<book id="123" lang="en"><title>Python Guide</title><author>Jane Smith</author></book>

We use cookies to improve your experience

We use essential cookies to ensure our calibration tools and preferences work as intended. By continuing, you agree to our use of cookies.

Learn More