XML to JSON Converter

Convert XML to JSON with attribute handling, namespace support, and XXE protection. All processing is client-side.

Security Notice

External entity processing (XXE) is disabled. DOCTYPE declarations and external ENTITY references are flagged as security warnings. This tool does not fetch external DTDs or remote schemas.

Frequently Asked Questions

How are XML attributes handled?

By default, attributes are included in the JSON output with an '@_' prefix (e.g., @_id). You can enable the 'Ignore Attributes' option to exclude them from the output.

Is this tool safe from XXE attacks?

Yes. This tool uses fast-xml-parser with external entity resolution disabled. DOCTYPE declarations and external ENTITY references are flagged with a warning.

How are repeated XML elements handled?

Repeated sibling elements with the same tag name are automatically converted to JSON arrays.