Search tools

Search for a command to run...

YAML ↔ JSON Converter

Convert YAML to JSON and JSON to YAML for Kubernetes, Docker Compose, GitHub Actions and other config files.

How to use

  1. 1Choose the direction (or leave it on auto-detect).
  2. 2Paste your YAML or JSON and copy the converted result.

Frequently asked questions

Is every YAML file convertible to JSON?

Almost. JSON has no comments, anchors or custom tags, so comments are dropped and anchors are expanded into copies.

Can it handle multiple YAML documents?

Yes. Files with several documents separated by --- become a JSON array, one item per document.

Why do 'yes' and 'no' stay as strings?

We follow YAML 1.2, where only true and false are booleans. YAML 1.1 treated yes/no/on/off as booleans too.