Updated June 2026 · runs 100% in your browser
XML to JSON
Convert XML into JSON. Paste, convert, copy or download — on your device, no upload.
🔒 Processed on your device · 0 bytes uploaded
How it works
Paste XML and press Convert to get JSON. Invalid XML is reported.
It all runs in your browser with JavaScript, so your data never leaves your device. It stays free, unlimited and private, and works offline once loaded.
About XML to JSON
Elements become keys, repeated tags become arrays, and attributes are kept with an @ prefix. Parsed safely in your browser.
Frequently asked questions
How do I use XML to JSON?
Paste XML and press Convert to get JSON. Invalid XML is reported.
How are attributes handled?
Attributes are kept as keys prefixed with @, alongside any child elements.
Is my data uploaded?
No. Everything is parsed and converted in your browser with JavaScript — your data is never sent to a server.
What is an XML file?
XML (eXtensible Markup Language) is a flexible, tag-based text format for structured data and documents. It's verbose but self-describing and underpins many file formats and data feeds.
What is a JSON file?
JSON (JavaScript Object Notation) is a lightweight, human-readable text format for structured data. It's the standard for web APIs and config files because both people and programs read it easily.