How to use this tool
- Paste one well-formed XML document without DTD or entity declarations.
- Choose indentation and run Convert XML to JSON.
- Review the result and diagnostics before copying or downloading.
Inspect XML elements, repeated children, attributes, and text in a predictable JSON mapping.
Convert well-formed XML to JSON while blocking DTD and entity declarations.
Inspect XML elements, repeated children, attributes, and text in a predictable JSON mapping.
<project name="jsonformatters.org"><feature>format</feature><feature>validate</feature></project>
{
"project": {
"feature": [
"format",
"validate"
],
"@_name": "jsonformatters.org"
}
}No. The engine runs in your browser and applies local resource limits.
The tool reports a diagnostic and does not keep stale output.
It emits attributes with @_ prefixes, text as #text when needed, and arrays for repeated elements.
XML types, namespaces, mixed-content ordering, comments, DTD, and external entities are not inferred.