Open huge JSON files instantly. Free & private.🔒 Your data never leaves your browser

JSON ⇄ XML

Convert JSON to XML or XML to JSON. Attributes, repeated elements and text nodes are handled automatically.

JSON
XML

How JSON maps to XML

  • Keys starting with @ become attributes: "@id": "bk101" → <book id="bk101">
  • Arrays become repeated elements with the same tag name
  • #text holds an element's text when it also has attributes
  • Special characters like & and < are escaped automatically

The same rules are used in reverse when converting XML to JSON, so you can convert back and forth.

More free tools