XML to JSON
without uploading it.
Paste XML and get back a clean JSON array — entirely in your browser.
Paste your XML — each direct child of the root element becomes one JSON object.
Click "Convert to JSON".
Copy the result.
Why there's no upload step
Uses the browser's own built-in XML parser (DOMParser), so there's no library to trust with your data. Repeated sibling tags automatically become a JSON array instead of overwriting each other.
Is my data sent anywhere?+
No. Parsing happens entirely in your browser using the native DOMParser API — nothing is uploaded or logged.
What if my XML is invalid?+
You'll get a clear error instead of a silently wrong result — the browser's own parser flags malformed XML.
Are XML attributes included?+
No — this tool converts element text content and nesting, not attributes. Restructure attributes as child elements first if you need them included.
Can I go the other direction?+
Yes — use the JSON to XML page.