XML to JSON Converter
Convert XML data to JSON format instantly. Paste text or upload a .xml file.
No data sent to serverRelated Tools
What is XML to JSON?
XML (eXtensible Markup Language) is a structured document format commonly used in SOAP APIs, configuration files, and RSS feeds. JSON is the preferred format for modern REST APIs and web apps. Converting XML to JSON simplifies working with legacy data in modern JavaScript applications.
How to Use
- Paste XML data or upload a .xml file.
- Click "Convert".
- Copy or download the JSON output.
FAQ
How are XML attributes handled?
Attributes are prefixed with @ in the JSON output. For example, <user id="1"> becomes {"@id": "1"}.
What about repeated elements?
Repeated sibling elements with the same tag name are automatically grouped into a JSON array.