JSON to YAML
Convert JSON to clean YAML. Strings are quoted only where YAML needs it, and multi-line text becomes a readable block.
JSON to YAML converts JSON into clean, readable YAML for config files such as Docker Compose, Kubernetes and GitHub Actions. Strings are quoted only where YAML needs it, so values like "yes", "012" and "1.0" stay strings, and multi-line text becomes a block.
What is YAML?
YAML
A data format that uses indentation instead of braces. It holds the same maps, lists and values as JSON and is popular for configuration because people can read and edit it easily.
Safe quoting
Some plain words mean something else in YAML: yes, no, on and off can become true or false, and 012 can become a number. Those strings are quoted so they come back exactly as they were.
Why use JSON to YAML?
- Write config by hand more easily. Start from JSON you already have and get YAML that is ready to drop into a config file.
- No surprises. Quoting follows the cautious rules, so a country code NO or a version 1.10 is never read back as something else.
- Private. Secrets in config files stay in your browser.
How to use JSON to YAML, step by step

- Paste JSON into JSON to YAML. Any valid JSON works, from one value to a large document.
- Check the YAML. It updates as you type. Errors in the JSON are shown with their line and column.
- Copy or download. Save it as data.yaml or paste it into your file.
Frequently asked questions
Can I convert it back?
Yes, with YAML to JSON. The YAML this tool writes reads back to the same JSON.
How are multi-line strings written?
As a literal block starting with |, which keeps every line break. A string that ends without a line break uses |- so none is added.
Does it add anchors or comments?
No. JSON has neither, so the YAML holds just the data.
Looking for the long version? The guides cover each of these jobs in depth.