Paste YAML from a config file, a Kubernetes manifest or a CI pipeline and get formatted JSON as you type. Switch the direction to turn JSON into YAML.
YAML and JSON hold the same kind of data: maps, lists, strings, numbers, true, false and null. YAML is easier to write by hand, so tools like Docker Compose, Kubernetes, GitHub Actions and OpenAPI use it. JSON is what most code and APIs read, so you often need to convert one into the other to debug a config, feed it to a script or paste it into a request.
This converter follows YAML 1.2, the current version. That matters for a few values: yes, no, on and off stay text, not true and false as in YAML 1.1, and a version like 1.10 becomes the number 1.1. Put such values in quotes when they must stay text. Comments are dropped, because JSON has no comments.
No. The conversion runs in your browser. You can disconnect from the internet after the page loads and it still works.
YAML 1.2 treats only true and false as booleans. yes, no, on and off are text. YAML 1.1 tools (older PyYAML) read them as booleans.
Yes. Choose JSON to YAML in the direction menu. Any valid JSON is also valid YAML, so the tool can read it and write it in YAML style.
They are removed. JSON has no comment syntax.