Easily convert your XML data with JSON.
Enter XML data to convert
Converted JSON will appear here
Indent size
The XML to JSON Converter allows you to easily convert XML strings into JSON objects. This is useful for developers working with APIs that serve XML but who prefer to handle JSON in their applications.
<catalog><book id="1"><title>Clean Code</title></book></catalog>
{
"catalog": {
"book": {
"@id": "1",
"title": "Clean Code"
}
}
}Converted XML tags into JSON object with attributes prefixed by @.
XML attributes are preserved as object properties prefixed with "@" (e.g. "@id": "1") so no metadata is lost.
Explore more free utilities in Converter
Unix Timestamp Converter
Convert between Unix Timestamps and human-readable dates.
Open
Color Converter
Convert colors between HEX, RGB, HSL, CMYK, and more.
Open
Aspect Ratio Calculator
Calculate aspect ratios and dimensions.
Open
Number Base Converter
Convert numbers between Binary, Octal, Decimal, and Hexadecimal.
Open
JSON to YAML Converter
Convert data between JSON and YAML formats.
Open
Unit Converter
Convert between various units of measurement (Length, Weight, Temp, etc.).
Open