XML
Convert XML data to JSON format instantly — free, private, and right in your browser.
Your XML is parsed and converted locally in your browser. No data is uploaded to any server.
0 characters
0 characters
XML and JSON model data differently: XML mixes structure into tags and attributes, while JSON uses plain key-value pairs. This converter walks the XML tree and applies a set of predictable mapping rules so the output is easy to consume in JavaScript, Python, or any JSON-native toolchain.
Supported XML features:
@name keys when "Preserve attributes" is on@declaration key<age>30</age> → 30)Looking for the reverse conversion? Use the JSON to XML Converter →
<person><name>John</name><age>30</age></person> becomes {"person": {"name": "John", "age": 30}} — numbers are inferred automatically.
<tags><tag>a</tag><tag>b</tag></tags> becomes {"tags": {"tag": ["a", "b"]}}, matching how most APIs expect list data.
<user id="42"><name>Jane</name></user> becomes {"user": {"@id": "42", "name": "Jane"}} when attribute preservation is enabled.
Convert JSON to well-formed XML with objects, arrays, nested structures, and custom root elements.
Convert JSON to clean, readable YAML — ideal for config files, Kubernetes manifests, and CI pipelines.
Convert YAML to JSON with full support for nesting, lists, and scalar types.
Convert XML straight to YAML, preserving nested structure and optional attributes.
Looking for something else? Browse all tools