Skip to content

JSON to XML

Convert JSON objects into well-formed XML

JSON input

Converts as you type

XML output

XML appears here

How to use

  1. Paste or upload JSON.
  2. Set the root element name and the element name for array items.
  3. Copy or download the XML.

Mapping JSON to XML

JSON objects map naturally to XML elements: each key becomes a child element and each primitive becomes text content. Arrays, which XML has no direct equivalent for, become repeated child elements. Null values become empty self-closing elements.

Frequently asked questions

Each array item becomes a child element. If the array key is plural, such as items, each child is named by the singular form (item); otherwise the name you set under Item element is used.