JSON to YAML converter

Simply convert JSON to YAML with this online live converter.

About JSON to YAML converter

Converts JSON into YAML as you type. YAML is the format of most configuration files (Kubernetes, GitHub Actions, Docker Compose, Ansible), and this tool lets you write or paste JSON and get an equivalent YAML document.

When you would use it

How to use it

  1. Paste JSON into the left field. Relaxed JSON5 syntax (comments, trailing commas, unquoted keys) is accepted.
  2. Read the YAML on the right; it updates on every change.
  3. Copy the result with the copy button.

Things worth knowing

Frequently asked questions

Why are some of my strings quoted and others not?
YAML only needs quotes when a bare value would be interpreted as something else, for example the string "true" or "1.0". The converter adds quotes exactly in those cases.
Can I convert YAML back to JSON?
Yes, use the YAML to JSON converter. Converting back and forth preserves the data, but not comments or formatting.

All the tools