JSON to XML

Convert JSON into well-formed XML with a root element you choose, pretty-printed or minified.

How it works

  • Object keys become elements; arrays become repeated <item> elements unless the objects inside the array suggest a name.
  • Nested objects are written as nested XML elements; the root element name is whatever you type in the box.
  • Keys that are not valid XML names (spaces, leading digits) are automatically repaired so the output always parses.
  • Everything runs in your browser with JavaScript - no data is uploaded.