How to use the JSON to XML
- Paste JSON.
- Set the root element name if you need one.
- Press Convert and download the .xml file.
Features
- Objects become nested elements, and arrays become repeated elements with the same name
- Keys starting with @ become attributes, and #text becomes element text (the reverse of XML to JSON)
- Keys that are not valid XML names are made safe ("first name" becomes first_name)
- Special characters are escaped, so the output is always well-formed
Supported input
Valid JSON.
Limitations
- JSON has no namespaces, comments or processing instructions, so none are produced.
- null becomes an empty element, which XML cannot distinguish from an empty string.
Privacy
Everything this tool does happens in your browser. What you paste or open is never uploaded, stored, logged or used for advertising. Closing the tab discards it. Read the privacy policy.
Frequently asked questions
01How are JSON arrays represented?
{"tag": ["a", "b"]} becomes <tag>a</tag><tag>b</tag>. A top-level array is wrapped in the root element, with each entry as an <item>.
02Is my data uploaded anywhere?
No. This tool runs entirely in your browser tab. Your input is never sent to our servers, stored, or logged. You can disconnect from the internet after the page loads and it keeps working.