Convert JSON to XML
To convert JSON to XML, add the .json file, optionally type a root element name, and click JSON to XML. Objects become elements, arrays repeat the element for each item, @ keys become attributes, and the result is indented, well-formed XML with a UTF-8 declaration. It runs in your browser.
Well-formed, indented XML with attributes from @keys
Choose Files
or drop documents directly into this area
Quick facts
- Formats
- JSON or Text (TXT) → XML; several results come as one ZIP
- Where it runs
- In your browser, on your own device. Files are not uploaded.
- Size limit
- 600 MB per run on a computer, 200 MB on a phone or tablet
- Files per run
- Up to 50
- Last updated
How to use JSON to XML
Choose one or more JSON files.
Optionally type a Root element name.
Click JSON to XML.
Download the .xml file.
Features & Privacy
Fast & High Quality
Private: Files Never Leave Your Device
Batch Processing
Frequently Asked Questions
The name you type in Root element name. If you leave it empty, a single top-level key is used as the root when possible; otherwise the root element is called root.
Each array item repeats the element name, so a tags array with two values becomes two tags elements. A top-level array is wrapped in a root element with one item element per entry.
Yes. Keys that start with @, such as @id, become attributes of their element, and a #text key becomes the element's text content.
Invalid characters are replaced with underscores, and names that start with a digit get an underscore in front, so the output is always well-formed XML.
Yes. Ampersands, angle brackets, quotes and apostrophes are escaped, and characters that XML does not allow are removed, so the file opens in any XML parser.
No. The conversion runs in your browser on your own device, so the data never leaves it. It works the same way in phone and tablet browsers.
Related Tools
Continue your workflow with these related tools: