Skip to content
MyDailyTool

JSON to YAML Converter

Convert JSON to clean indented YAML for Kubernetes manifests, Docker Compose, CI configs, and Helm charts. Preserves nested structures.

How to use the json to yaml converter

Paste JSON on the left. Clean indented YAML appears live on the right — the format Kubernetes, Helm, Docker Compose, and GitHub Actions expect.

Formula & explanation

Object keys become YAML mapping keys, arrays become YAML sequences with leading dashes. Strings are quoted only when they'd parse as a different type (e.g. "true", "123").

Examples

{"version":3,"services":{"web":{"image":"nginx"}}} becomes a Compose-style YAML

Frequently asked questions

Why are some strings quoted and others aren't?
We quote strings that would otherwise round-trip to a different type ("true", "3.14", "null"), or contain special characters like colons. Plain identifier strings are left bare for readability.
Can I use this for Kubernetes manifests?
Yes. Output is standard indented YAML that kubectl, Helm, and Argo all accept. For multiple documents in one file, convert each one separately and join with "---" separators.

Related developer tools tools