XML to JSON Converter
Local ProcessingConvert XML documents, tags, and attributes into structured JSON objects.
How It Works & Processing Standards
Convert XML documents, tags, and attributes into structured JSON objects.
Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.
Current Limits
- Desktop max file size: 50MB
- Mobile max file size: 20MB
Turns XML such as RSS, SOAP responses or old config files into JSON that is easy to handle in JavaScript. The content inside the root element becomes the result object.
What You Can Do
- Repeated elements to arrays
- A <tag> that appears several times becomes an array.
- Attributes to @keys
- An attribute like id="7" becomes the key "@id".
How to Use XML to JSON Converter
- 1Paste XMLPaste the XML to convert.
- 2CopyCopy the JSON.
Examples
Book details
Input: <book><title>어린 왕자</title><year>1943</year></book>
Result: {
"title": "어린 왕자",
"year": "1943"
}
Common Use Cases
- Handling RSS or XML API responses in code
- Moving XML settings to JSON
Frequently Asked Questions (FAQ)
Numbers come out as strings ("1943").
XML has no types, so every value is read as text. Convert in your code where numbers are needed.
