Paste JSON and click Convert. The output is an XML document where JSON object keys become element names, string and number values become text content, and arrays produce repeated sibling elements. You can set the root element name using the input field.
Free, fast, runs in your browser. No login needed.
root)..xml file or copy the output.The converter walks your JSON recursively and produces an XML element for each value:
{"users": ["Alice", "Bob"]} produces <users>Alice</users><users>Bob</users> — not <item> tags.Limitations to be aware of:
&, <, >, ", ') are not escaped. If your JSON strings contain these characters, the output will be invalid XML. Escape them manually before converting.Common use cases: preparing JSON data for an XML-based API or legacy system integration; converting configuration data to XML format; quick inspection of how a JSON structure maps to XML.
Each array element becomes a sibling element using the array's key name. {"colors": ["red","blue"]} produces
No. The converter only produces element-based XML. All JSON values become element text content or child elements. There is no syntax in the input to indicate an attribute.
These characters are not escaped, which will produce invalid XML. Use the JSON Escape tool or manually replace & with &, < with <, and > with > in your string values before converting.
Yes. Enter any valid XML element name in the text field next to the Convert button before clicking it. The default is "root".
No. The conversion runs entirely in your browser.