XML to JSON Converter
Convert XML to JSON in your browser, with no upload and no sign-up.
About these formats
XML predates JSON and remains standard in enterprise systems, document formats and older APIs. It carries attributes as well as nested elements, which is why converting it to JSON involves a choice about how attributes are represented.
JSON is the default interchange format of the web: nested objects and arrays, readable by people and parsed natively by every mainstream language.
How to use this tool
- Paste your XML into the left box, or press Load example to see the shape it expects.
- The JSON output appears on the right as you type.
- Copy the result or download it as a file.
Frequently asked questions
Is my data uploaded anywhere?
No. The conversion runs entirely in your browser using JavaScript. Nothing you paste leaves your device, is logged, or is stored on a server.
How large a document can it handle?
The limit is your browser's memory rather than any server quota. Documents of a few megabytes convert without trouble; very large files may make the page briefly unresponsive while it works.
What happens to nested data?
Formats that have no concept of nesting store nested values as a JSON string inside the cell, so nothing is silently discarded and the structure can be recovered.
Does it handle quotes and commas inside fields?
Yes. Parsing follows RFC 4180, so quoted fields containing commas, escaped double quotes, and line breaks inside a field are all read and written correctly.