XML to JSON Converter
Convert XML to clean, formatted JSON instantly — attributes and nested tags preserved. Free and private.
Paste any XML and get well-formatted JSON back. Attributes are kept as @name keys and repeated tags become arrays, so the structure survives the conversion. Everything runs in your browser — nothing is uploaded.
How to use it
Paste your XML, click Convert to JSON, and copy the result. Going the other way? Try JSON to XML. You can also tidy the result with the JSON Formatter.
Frequently asked questions
How are XML attributes handled?
Attributes are converted to keys prefixed with "@" (e.g. <id> with attribute type="a" becomes {"@type":"a"}), so no information is lost.
Is my data uploaded?
No — the conversion happens entirely in your browser with the built-in XML parser.