XML to JSON Converter

Paste XML and get clean JSON output. Attributes are preserved with an @_ prefix for easy access.

Output will appear here

XML to JSON conversion

JSON Mint parses well-formed XML and produces an equivalent JSON representation. Element attributes are preserved with an @_ prefix so you can distinguish them from child elements. Repeating child elements become JSON arrays automatically.

Use this tool to modernize legacy SOAP responses, ingest RSS feeds into a JSON-first stack, or convert XML configuration files for programmatic manipulation.

Frequently Asked Questions

How are XML attributes handled?+

Attributes become keys prefixed with @_. For example, <user id="1"> becomes { "@_id": 1 } inside the user object.

Are namespaces preserved?+

Namespace prefixes are preserved in the keys. Full namespace URI mapping is not included in the output.

What if my XML has mixed content?+

Text nodes and child elements are merged into the same object. For complex mixed content, you may want to post-process the JSON.

Related Tools