JSON to YAML

Convert JSON data into YAML with correct quoting, nesting, and indentation, for config files, GitHub Actions, Docker Compose, and Kubernetes manifests.

JSON to YAML conversion rewrites JSON data in YAML, a format people tend to edit by hand. Objects become key and value pairs, arrays become list items, and both nest by indentation.

Output

                

Paste or type something above.

Questions about json to yaml

When do I need quoted strings?
A YAML scalar is quoted when it could be read as a number, a boolean, or null, or when it contains a colon, a hash, or leading and trailing spaces.
Are YAML anchors supported?
No. The converter reads JSON, which has no anchors. Output is plain YAML without tags or anchors.
Can I convert the result back?
Yes. Use YAML to JSON to check the round trip and confirm nothing changed.