Data converter

JSON to XML converter

To convert JSON to XML, drop your JSON file in the box below. It converts straight away; press Download to save the XML. It all happens in your browser, so your file stays on your device.

Converted on this device, never uploaded

What changes

JSON to XMLWhat happens
RootA single top-level key becomes the root element; anything else is wrapped in <root>
ListsRepeat their element: one <item> per entry, or the key’s name
AttributesKeys starting with @ become attributes, #text the element’s text
NamesKeys XML cannot use (spaces, a leading digit) get underscores; the note names them
Escaping&, < and > are escaped, so any text is safe

How to convert JSON to XML

  1. Add your JSON. Drop the file in the box, or click to choose it. It becomes XML straight away.
  2. Check the result. Look at the preview. The delimiter and value types are set for you; change them if needed.
  3. Download. Press Download to save the XML.
Why XML

Feed JSON data to a system that only takes XML: feeds, older APIs, office and publishing tools.

Questions

Yes. XML turned into JSON here (with @ for attributes and #text for text) turns back into the same XML.

It becomes an empty element, like <note/>.

No. The XML is plain, without a schema, namespaces or type attributes.

No. The conversion happens right in your browser, so your file stays on your device. There is no account to make, either.

Related conversions