About this tool
Useful for older APIs and integrations that only accept XML. Special characters are escaped so the output is always well-formed.
Producing XML for systems that still need it
Plenty of systems still speak XML. Banking and payment integrations, government portals, older enterprise software, RSS feeds and many SOAP services expect XML even when the rest of your stack uses JSON. This converter turns a JSON object into well-formed XML so you can test an integration, prepare a sample request, or migrate data between systems without writing a conversion script.
The mapping follows simple rules. Each key becomes an element, and nested objects become nested elements. Arrays repeat the element once for each item, which is how XML normally represents lists. Special characters such as ampersands and angle brackets are escaped, so the output is always valid XML even when your data contains symbols or snippets of code.
XML has a few features that JSON lacks, so some planning helps. Every XML document needs a single root element; if your JSON has several top-level keys, they are wrapped in a root element whose name you can set, and an XML declaration can be added at the top. XML element names cannot start with a number or contain spaces, so keys like '2024' or 'first name' may need renaming before conversion. If the target system expects attributes rather than child elements, or a particular namespace, check its documentation and adjust the output accordingly, because there is no single standard mapping between the two formats. Always test the converted XML against the receiving system's schema or sample files before using it in production. Everything runs in your browser, so the data you convert stays on your own machine.
How to use it
- Paste your text into the input box, or open a file from your device.
- Adjust the options. The result updates instantly.
- Copy the result, or download it as a file where offered.
Questions
How are arrays converted?
Each array item becomes a repeated element with the array's key as its name.
Can I create XML attributes?
Yes. Keys beginning with @ become attributes on the parent element.
Last reviewed 16 October 2026.
