JSON ↔ XML ↔ YAML Converter

JSON ↔ XML ↔ YAML Converter converts between JSON, XML and YAML in any direction: pick the source and target formats, paste the data and get the result. Conversion runs in your browser; your data never leaves your device.

Result
—

How it works

  1. 1Choose the source and target formats.
  2. 2Paste the data into the left box (or press "Sample").
  3. 3Copy the result with "Copy".

Frequently asked questions

How are XML attributes converted?+

Attributes become keys starting with @ on the JSON/YAML side and text content goes under #text; converting back gives the same XML.

What about repeated XML tags?+

Sibling tags with the same name become an array.

What happens with invalid input?+

The tool shows the error message and the result stays empty.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/code/json-xml-yaml-converter/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="JSON ↔ XML ↔ YAML Converter · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Developer Tools Guide →

Command Palette

Search for a command to run…