JSON to YAML
Convert JSON data into YAML with correct quoting, nesting, and indentation, for config files, GitHub Actions, Docker Compose, and Kubernetes manifests.
How to use
- Paste JSON into the input.
- Set the indent width, and turn on quoting to quote every string.
- Copy the YAML into your config file.
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.
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.
Related tools
- YAML to JSON Convert YAML into JSON with correct types for numbers, booleans, and null values, so you c...
- JSON Formatter Format minified or badly indented JSON into clean, readable output with your choice of ind...
- JSON Validator Check whether JSON is valid and see the exact line and column where the syntax breaks, plu...