JSON to XML converter

Turn a JSON document into XML — objects become elements, arrays repeat, with escaping handled.

Converted in this browser. Nothing is sent anywhere.

JSON up to 200,000 characters. Object keys become element names (non-XML-name keys become <item>). Arrays emit repeated elements; a top-level array wraps in the root element as <item> children. A key starting with @ becomes an attribute and #text becomes the element's text — everything else becomes a child element. null becomes an empty element.

How to use

  1. Paste the JSON.
  2. Set the root element name.
  3. Copy the XML.

What it supports

Up to 200,000 characters. Object keys become element names (non-XML-name keys become <item>); arrays emit repeated elements; a top-level array wraps as <item> children inside the root. Keys starting with @ emit as attributes and #text as the element's text; null becomes an empty element. Always a single root element.

Related tools

Related guides