JSON tool

JSON ↔ YAML

Convert JSON to YAML or YAML to JSON locally in your browser.

Your data is processed locally in your browser and is not sent to our server.
Conversion direction

Result

Your result will appear here.

How to use JSON ↔ YAML

  1. Choose JSON → YAML or YAML → JSON.
  2. Paste a document and select Convert.

Example

{"service":"web","replicas":2}

Technical details

YAML parsing and serialization use the lightweight YAML 2 library in the browser.

Frequently asked questions

Are YAML anchors preserved?

The converter works with parsed data values; comments and formatting details are not preserved.