About JSON to XML
This tool converts JSON into indented XML. Object keys become element names, arrays repeat the element, and values become text content, with special characters escaped. It runs entirely in your browser.
How JSON to XML works
How to use it
- Paste your JSON.
- Copy the generated XML.
How it works
The converter walks the JSON tree and emits matching XML elements, wrapping the whole document in a root element and escaping &, < and >. Keys with characters not valid in element names are sanitised.
Common uses
- Convert JSON to XML
- Feed JSON data to an XML system
- Transform an API response
- Generate XML config
- Migrate data formats
- Prepare XML for a legacy tool
- Convert nested JSON
- Escape data into XML
Frequently asked questions
How do I convert JSON to XML?
Paste JSON and copy the XML output.
Are arrays handled?
Yes — array items repeat the element.
Is my JSON uploaded?
No — it converts in your browser.
Are special characters escaped?
Yes — &, < and > are escaped.
What about invalid key names?
They are sanitised into valid element names.
Is there a root element?
Yes — the output is wrapped in a root element.
Is it free?
Yes — completely free with no sign-up.