Private JSON tool
XML to JSON Converter
Convert XML into a pretty-printed JSON object in your browser. Attributes, repeated elements, and text-only elements are handled locally.
About browser XML to JSON conversion
This page uses the browser XML parser, then converts the parsed document to JSON. The text stays in your browser and is not sent to a server.
Attributes are kept with @ keys, repeated sibling names become arrays, and text-only elements become strings. The root element name is preserved as the top-level JSON key.
Does this upload my files?
No. Everything on this page runs locally in your browser, so your files are never uploaded to a conversion server. Close the tab and nothing is left behind.
After any required processing engine has loaded, repeated conversions can keep working offline. You can verify the claim with the site's reproducible browser privacy audit.
FAQ
Is my XML uploaded?
No. XML is parsed by the browser and converted to JSON inside the page.
How are XML attributes represented?
Attributes are written with keys that start with @, such as @id.
How are repeated elements represented?
Repeated sibling elements with the same name become arrays in the JSON output.
What happens on invalid XML?
The browser parser error is shown in the status line and no output is written.