JSON โ YAML Converter
Convert JSON to YAML or YAML to JSON for config files (Docker, Kubernetes, CI). Works on your device.
Also called: YAML to JSON, JSON to YAML.
JSON โ YAML Converter
Convert JSON to YAML or YAML to JSON for config files (Docker, Kubernetes, CI). Works on your device.
Watch: how to use the JSON โ YAML Converter (14 seconds)
Recorded on a phone, steps written on screen, no sound.
About the JSON โ YAML Converter
Convert JSON to YAML or YAML to JSON for config files (Docker Compose, Kubernetes, GitHub Actions), with 2- or 4-space indentation.
How to use the JSON โ YAML Converter
- Enter your textType or paste your text.
- Pick the optionsdirection and indent (the defaults suit most uses).
- Press Run toolThe result appears right under the button.
- Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.
This tool works inside your browser: what you enter stays on your device.
Example
A sample input and the result the JSON โ YAML Converter gives for it (produced by the tool itself, not typed by hand).
- Direction
- JSON โ YAML
- Input
- {"name":"app","ports":[80,443],"debug":false}
- Indent
- 2 spaces
Result:
name: app ports: - 80 - 443 debug: false
Good to know
- What you need
- You type or choose: Input
- Where it runs
- In your browser, on your device.
- Cost
- Free, no sign-up.
Questions
Does it keep comments?
No, JSON has no comments, so YAML comments are lost in the conversion.
Why did my YAML fail?
Usually tabs instead of spaces, or wrong indentation.