Direction

How to use JSON ⇄ XML Converter

Paste JSON or XML and convert it the other way. Attributes, repeated elements and text content are mapped predictably.

  1. Choose the direction (or paste and let it detect JSON vs XML).
  2. Paste your data or open a file.
  3. Copy or download the converted result.

Questions

How are XML attributes represented in JSON?

As keys starting with “@” (e.g. "@id": "5"). Element text next to attributes or child elements goes in "#text". Converting back to XML uses the same convention.

What happens to repeated elements?

Elements with the same name under one parent become a JSON array. When converting JSON to XML, each array item becomes a repeated element with the array’s key as its name.

Is my data uploaded?

No. Parsing and conversion happen entirely in your browser.

Ratings & reviews

No ratings yet. Signed-in users can rate this app.