Paste JSON and get YAML. The usual reason is that you have an API payload and need it as a config file — a Kubernetes manifest, a GitHub Actions workflow, a Docker Compose service. Nothing leaves this tab, which matters when the payload has credentials in it.
The values YAML would silently change
"no" is a boolean in the YAML 1.1 schema that most parsers still use — so is y, yes, off and on. A version number like 1.10 becomes the float 1.1, losing the trailing zero. A country code such as NO for Norway becomes false.
Every one of those is quoted automatically here. It is the most common way a hand-written JSON-to-YAML conversion breaks a deployment, and it fails at runtime rather than at parse time.
Formatting choices that matter
Anchors and aliases are never emitted. A JSON document that references the same object twice would otherwise produce &ref_0 / *ref_0, which is correct YAML that a surprising number of tools cannot read.
Two-space indentation, and why lists look like that
kubectl, Helm and GitHub Actions all produce.Other names for this
Also searched as “json to yml”, “convert json to yaml online”.
Questions
- Why are some of my strings in quotes?
- Because YAML would read them as something else.
no,y,offand version numbers like1.10all change meaning if left bare. - Can I convert a JSON array at the top level?
- Yes — YAML allows a sequence as the root document, unlike TOML.
- Will comments be preserved?
- JSON has no comments to preserve. Going the other way, YAML to JSON, comments are lost because JSON cannot express them.
- Is my data uploaded anywhere?
- No. The conversion runs as JavaScript inside this tab. Open your browser's Network panel and convert something — you will see no request carrying your data, because there is no server to send it to. You can also turn your Wi-Fi off and convert anyway.