JSON to XML
Convert a JSON file into XML. Object keys become elements; array items become repeated elements.
Free, with no account needed. It runs in your browser, so your file never leaves your device.
Select JSON file
or drop it here · up to 25 MB
About JSON to XML
JSON to XML converts a JSON file into XML. Everything is placed under a single root element, and the output is indented so it is easy to read.
Last reviewed
How to use it
- Select a .json file.
- Press Convert to XML.
- Download the .xml file.
When to use it
- Sending data to an older system, a government or banking interface, or a SOAP service that expects XML.
- Creating XML test files from JSON samples.
- Moving data between a modern app and software that imports XML.
Good to know
- The top-level element is called root. A list becomes repeated elements.
- XML element names cannot start with a digit or contain most punctuation, so a key such as 1st-name is changed to a valid name such as _1st-name.
- JSON has no attributes, so every value becomes an element.
Tips for a better result
- Check the element names the receiving system expects. You may need to rename the root element or keys afterwards.
- Keys that are not valid XML names are changed, so review the output for those.
- Validate the XML against the receiver's schema if they provide one.
Questions about JSON to XML
- Why did my key name change?
- XML names have stricter rules than JSON keys. Characters that are not allowed are replaced with underscores, and a leading digit gets an underscore in front.
- Can I choose the root element's name?
- No. The root element is always called root.
- How much does JSON to XML cost?
- JSON to XML is free, and you don't need an account. It runs inside your browser, so it costs us nothing to run and there are no credits to spend.
- Is my file kept after I use JSON to XML?
- Your file never leaves your device. JSON to XML works inside your browser, so nothing is uploaded and there is nothing for us to keep.
- Do I need an account to use JSON to XML?
- No. JSON to XML works without an account or sign-up. Open the page, choose your file and download the result.
- Does JSON to XML work on a phone?
- Yes. JSON to XML runs in the browser on phones, tablets and computers, with nothing to install. A very large file can be slow on an older phone, because your own device does the work.
- Is there a file size limit for JSON to XML?
- We set no upload limit, because nothing is uploaded: the limit is your device's memory. If your browser can't process a file, the page offers to process it on our servers instead. That uses credits and accepts files up to 25 MB.