XML to JSON Converter
Paste any XML or upload a .xml file and convert it to a clean JSON object in one click. Attributes are mapped to @attribute keys, repeated sibling tags become arrays, and text values are automatically coerced to numbers and booleans where appropriate. Copy the result to clipboard or download it as a .json file. Everything runs in your browser. Nothing is sent to a server.
Was this helpful?
Files stay local
Processed in your browser
Instant
No queue, no wait time
No account
No sign-up, ever
Free
Enabled by ads
How it works
Paste or upload your XML
Drop a .xml file onto the upload zone or paste raw XML into the text area. The converter works entirely in your browser. No file is sent anywhere.
Click Convert
Click the Convert to JSON button. Attributes become @attr keys, repeated child elements become arrays, and leaf values are coerced to the right type.
Copy or download
Copy the JSON to clipboard or download it as a .json file named after your original file.
Frequently asked questions
Attributes are included in the JSON object as @attributeName keys alongside child elements and text content.
If the same tag appears more than once under a parent, all occurrences are grouped into a JSON array automatically.
No. Conversion uses the browser's built-in DOMParser. Your file never leaves your device.
Text values that look like numbers, booleans (true/false), or null are coerced to the correct JSON type. Everything else stays a string.