JSON Input
1
XML Output
1

Jsonic's JSON to XML converter transforms any valid JSON into well-formed XML. Paste your JSON and click Convert — JSON objects become XML elements, arrays become repeated sibling tags, and primitive values become text nodes. The output includes an XML declaration and preserves nesting with 2-space indentation. All processing runs in your browser; no data is sent to a server.

How to convert JSON to XML

  1. Paste your JSON into the left panel.
  2. Click Convert.
  3. XML output appears in the right panel.
  4. Click Copy or Download to save the result.

FAQ

How are JSON arrays converted to XML?

JSON arrays are converted to repeated sibling XML elements with the same tag name. For example, an array of items under a "book" key becomes multiple <book> elements.

What happens to JSON null values?

JSON null values become self-closing XML tags, for example <fieldName/>.

Is the XML output valid?

Yes. The output includes a standard XML declaration and uses proper escaping for special characters like &, <, >, ", and '. All tag names are sanitized to be valid XML identifiers.

How are special characters in JSON keys handled?

JSON keys that are not valid XML tag names (e.g., keys starting with numbers or containing spaces) are prefixed with an underscore and sanitized automatically.

Is my JSON data sent to a server?

No. The conversion runs entirely in your browser using JavaScript. Your data never leaves your device.

Can I convert XML back to JSON?

Yes — use our XML to JSON converter for the reverse direction.

Does it support deeply nested JSON?

Yes. The converter handles arbitrary nesting depth, including objects within arrays within objects.