📊 XML to JSON
Convert XML documents into JSON you can actually work with.
Paste XML, or drop an .xml file below.
🔒 Files never leave your browser. Everything is processed locally on your device.
How to use
- Paste your XML into the box, or drop an .xml file.
- Click Convert to JSON.
- Copy the JSON or download it as a file.
FAQs
How are attributes and repeated elements handled?
Attributes land under an "@attributes" key, and repeated sibling elements become arrays — so <item>a</item><item>b</item> becomes "item": ["a", "b"].
My XML won't parse — what now?
The converter uses your browser's XML parser and shows its error message verbatim. The most common culprits are unescaped ampersands (& should be &) and unclosed tags.
Is my data uploaded anywhere?
No. Conversion happens entirely in your browser — your data is never sent to any server.