Home
Tom Utilities

JSON to XML

JSON Tools

Convert a JSON document into well formed XML with a configurable root element.

Input

Result

How to use

Converting JSON to XML

Press Convert. Root level keys map to elements and arrays produce repeated sibling elements.

  1. Paste JSON into the input editor.
  2. Press Convert.
  3. Copy or download the XML output.

Frequently asked questions

How are arrays represented?

Every array item becomes an element named after the array key.

How are invalid XML tag names handled?

Keys that are not valid XML names are sanitised so the output stays well formed.