YAML ⇄ JSON

About YAML ⇄ JSON

Paste YAML to get JSON, or paste JSON to get YAML. It suits config files for tools such as CI pipelines and Kubernetes manifests. The conversion runs on your device.

How to use YAML ⇄ JSON

  1. Paste your YAML or JSON into the input.
  2. Choose YAML to JSON or JSON to YAML.
  3. Check the converted result.
  4. Copy or download it.

Questions and answers

Are YAML comments kept?

No. JSON has no comments, so they are lost when converting to JSON.

Does it work with multi-document YAML?

It converts a single document. Split multi-document files first.

Is my config uploaded?

No.

Related tools