XML to JSON Converter
Convert XML to JSON and JSON back to XML. Attributes are stored as "@" keys and text content as "#text".
Runs entirely in your browser.
XML to JSON Converter Tool
About XML and JSON
XML (eXtensible Markup Language) and JSON (JavaScript Object Notation) are both widely used formats for storing and exchanging data. XML uses a tag-based tree structure with elements and attributes, while JSON uses a compact set of key/value pairs, arrays, and nested objects.
When converting XML to JSON, element attributes are commonly represented with an "@" prefix and an element's plain text content is stored under a "#text" key. Repeated child elements with the same name are grouped into an array. Learn more in our XML Tutorial and JSON Tutorial.