Convert · Runs in your browser

JSON to YAML Converter

Convert JSON into clean YAML for Kubernetes manifests, GitHub Actions, Docker Compose and other config files.

JSON
Drop a file to load it
YAML
Waiting for input

How to use it

  1. Paste JSON on the left, or upload a .json file.
  2. Choose the indent size and whether to quote every string.
  3. Copy the YAML or download it as a .yaml file.

Safe quoting

Strings that YAML would read as something else — yes, no, on, null, 08, 1e3 — are quoted automatically, so the YAML means exactly what the JSON did.

Exact numbers

Large integers and decimals like 1.10 are written exactly as in your JSON.

Round trip

Use YAML to JSON to convert back. Comments can’t be represented in JSON, so they are the only thing lost on the way back.