JSON to XML Converter

Map JSON objects and arrays onto clean, indented XML elements — ready for SOAP services and legacy integrations.

About this tool

This converter translates a JSON document into XML following the most common conventions: object keys become element names, arrays become repeated elements with the same name, and primitive values become text content. An XML declaration is added automatically.

How to use it

  1. Paste your JSON, or click Sample.
  2. If your top level is an array or a primitive, set the root element name to wrap it in.
  3. Click Convert to XML and copy the result.

Good to know

  • Characters that are invalid in element names are replaced with underscores; names that start with a digit get an underscore prefix.
  • Text is XML-escaped (&, <, >), so the output is always well-formed.
  • JSON has no native attribute concept — everything becomes elements. See the XML-to-JSON tool for the reverse mapping, which does preserve attributes.