JSON to XML Converter

Convert JSON to XML and XML back to JSON free, right in your browser — instant, UTF-8 safe, nothing uploaded.

Report a problem



How to use

  1. Paste your JSON (to make XML) or your XML (to make JSON) into the input box.
  2. Pick the direction — JSON → XML or XML → JSON. It converts as you type.
  3. Read the result in the output box and copy it to your clipboard.

FAQ

Is anything uploaded?

No — it runs in your browser. Your JSON and XML are converted on your own device using plain JavaScript, so nothing is sent to a server. It works offline and stays private.

How does JSON become XML?

Each value is wrapped in a tag named after its key, all inside a single <root> element. Objects nest their keys as child tags, arrays repeat the same tag once per item, and plain values become text with the &, < and > characters safely escaped.

How does XML turn back into JSON?

The XML is parsed and each element becomes a property named after its tag. Repeated tags become an array, and an element with only text becomes that text as the value. Attributes are not kept, so a round-trip captures the element structure and text.