P7 // FILE CONVERT // XML TO JSON

Convert XML to JSON

Upload an XML file and convert it to clean JSON. The converter preserves element hierarchy, attributes (prefixed with @), and text content. Repeated elements are grouped into arrays.

📁

Drop a XML file here or click to upload

.xml

// FAQ

How are XML attributes handled?

Attributes are converted to JSON keys prefixed with @ (e.g., @id, @class). Text content of elements with attributes uses the #text key.

How are repeated elements handled?

Repeated sibling elements with the same tag name are automatically grouped into JSON arrays.

Does it handle namespaces?

Namespaced element names are preserved as-is in the JSON keys, including any namespace prefixes.