JSON to XML Converter

Turn JSON into well-formed XML. Private, in your browser.

Input

Output

Ready
Ln 1, Col 1

Convert JSON to XML

Some systems, such as SOAP services, RSS feeds and older enterprise integrations, still expect XML. Paste JSON and get an equivalent, well-formed XML document with a <root> element.

How to use it

  1. Paste JSON into the Input panel or open a file.
  2. The XML appears in the Output panel.
  3. Copy it or Download it as an .xml file.

Conversion rules

  • Object keys become elements; values become text content.
  • Arrays inside objects become repeated elements with the key as the tag name; top-level arrays use <item>.
  • Keys that are not valid XML names are made safe, for example 1st name becomes _1st_name.
  • &, < and > are escaped; null becomes an empty element.

More JSON tools

All tools are free and run privately in your browser.

JSON to XML FAQ

How are JSON arrays represented in XML?

An array under a key becomes one element per item, all with that key as the tag name. A top-level array becomes item elements inside root.

Is my data uploaded to a server?

No. The JSON to XML runs entirely in your browser using JavaScript. Your data is never uploaded, logged or stored, and the tool keeps working offline after your first visit.