Converts XML into JSON (attributes prefixed with @_).
The XML to JSON converter parses any well-formed XML document and turns it into clean, 2-space indented JSON right in your browser. Element nesting becomes nested objects, repeated sibling tags become arrays, and attributes are preserved with an @_ prefix. It is handy whenever you need to feed legacy XML data into a modern JSON-based workflow, API, or config.
No. The conversion runs entirely in your browser using a client-side parser, so your XML never leaves your device and nothing is uploaded anywhere.
Attributes are kept and exposed as keys prefixed with @_, for example x="1" becomes "@_x": "1". When an element has both attributes and text, the text is placed under a "#text" key.
Sibling elements that share a tag name are collapsed into a JSON array. For example two <a> elements under the same parent become an array of two values.
Yes, element text values that look like numbers or booleans are converted to native JSON numbers and booleans (for example 42 and true), while attribute values are kept as strings.
The XML is validated before conversion. If it is malformed, unclosed, or empty, the tool throws an error with the validator's message instead of producing JSON.