Skip to content
Jellykit

JSON to YAML

Convert JSON to YAML instantly for Kubernetes, Docker Compose, GitHub Actions and config files. Choose the indent and sort keys. Free and runs in your browser.

Runs in your browser. Nothing is uploaded.

About JSON to YAML

JSON to YAML rewrites a JSON document as YAML, the indentation-based format used by Kubernetes manifests, Docker Compose, GitHub Actions, Ansible and most CI systems. Objects become mappings, arrays become dash lists, and strings are only quoted when YAML would otherwise misread them.

That last point matters: values such as yes, no, on and 0123 are quoted automatically, so they stay strings instead of turning into booleans or numbers when the YAML is read back. Long strings are never folded, so nothing is reflowed.

Conversion uses the js-yaml library inside your browser, so API responses and secrets in config files are not uploaded anywhere.

How to use JSON to YAML

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. Adjust the options. The result updates as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Is YAML a superset of JSON?

YAML 1.2 is, almost entirely, so any JSON is already valid YAML. Converting simply gives you the cleaner, comment-friendly block style people expect in config files.

Why are some values in quotes?

Words like yes, no, null and numbers with leading zeros would change type in YAML. Quoting keeps them exactly as they were in your JSON.

Is JSON to YAML free and private?

Yes. JSON to YAML is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all data tools →