JSON to XML Converter
Paste JSON and get well-formed XML with an optional declaration and your choice of indent. Keys that XML cannot use are renamed for you, and the tool tells you which ones.
- PrivateYour data never leaves this device
- No uploadsProcessed in your browser, not on a server
- 100% freeNo signup, no watermark, no trial
- UnlimitedUse it as often as you like, no daily caps
Options
JSON input
XML output
Output appears here.How to use the JSON to XML.
4 short steps. Nothing to install, nothing uploaded.
- 1
Paste your JSON, click Open file, or press Sample to try it.
- 2
Set the root element name (used when the JSON has several top-level keys or is an array) and the name for array items.
- 3
Choose how attributes are marked in your JSON (@name, _name or a $attrs object), the indent, and whether to add the XML declaration.
- 4
Copy the XML or download it as a .xml file. Any renamed keys are listed under the output.
Guides for JSON to XML

XML to JSON: the complete guide to converting XML data
30 Nov 20266 min readLearn how to convert XML to JSON online: how attributes, text, repeated tags and namespaces are written, what each option does, and what…

XML Formatter: the complete guide to validating and beautifying XML
30 Nov 20267 min readA complete guide to formatting XML online: beautify or minify, pick the indent, sort attributes, strip comments, and read every…

JSON to XML: the complete guide to converting JSON data
30 Nov 20266 min readHow to convert JSON to XML online: how arrays, @attributes and #text are written, why a root element appears, how invalid key names are…
Frequently asked questions.
Quick answers about the JSON to XML.


