OneTool

XML ⇄ JSON Converter

Bidirectional XML and JSON conversion with attribute-aware mapping.

Direction

What is this tool?

XML and JSON are both common interchange formats. This converter maps XML attributes to keys prefixed with @, repeated sibling elements to arrays, and text nodes to #text when mixed with children. The reverse direction expects a single root object key.

How to use it

  1. Choose XML → JSON or JSON → XML.
  2. Paste input in the selected format.
  3. Copy the converted output. For JSON → XML, use one top-level key as the root element.