Parse XML and convert to JSON — handles attributes, nested nodes, text content
XML to JSON Converter is a free, browser-based utility built for developers and engineers who need a fast, reliable way to parse xml and convert to json — handles attributes, nested nodes, text content. Whether you're debugging an API response, preparing data for deployment, or validating configuration files, this tool handles the job in seconds — with zero server calls. Everything runs locally in your browser, so your source code and data stay private.
@attrs key within that element's object. For example, <user id="42" active="true"> becomes {"@attrs":{"id":"42","active":"true"},...}. Text content of an element is stored under #text. You can disable attribute inclusion to get a simpler output when you only need element content.