JSON to YAML
Convert JSON into readable YAML for Kubernetes, CI and config files.
Nothing converted yet
Paste JSON on the left to see it as YAML, ready for a Kubernetes manifest or a CI config.
Runs entirely in your browser. Your data isn't uploaded — this page makes no network request with anything you type, which you can verify in your browser's network tab. How this works.
What is the JSON to YAML?
YAML is what most infrastructure config is written in, and JSON is what most tools emit. Converting between them comes up constantly: turning a Terraform output into a Helm value file, a captured API response into a fixture, or a JSON policy document into something reviewable.
Because JSON is a subset of YAML, the conversion is lossless in this direction. The interesting part is presentation: how much to indent, when to quote, how to render multi-line strings so the result reads like YAML a person would write.
How to use it
- Paste JSON into the left editor, or upload a .json file.
- Choose indentation and whether to quote strings only when required.
- Press Convert (or Ctrl/Cmd + Enter).
- Copy the YAML, or download it as a .yaml file.
Example
A JSON object rendered as YAML.
{"service":{"name":"api","port":8080,"env":["prod"]}}
service:
name: api
port: 8080
env:
- prod
Features
- Lossless conversion — JSON is a strict subset of YAML 1.2
- 2-space or 4-space indentation
- Multi-line strings emitted as literal blocks for readability
- Automatic quoting of values that would otherwise change type, such as yes, no, on, off and 1.0
- Optional document start marker (---)