About the YAML ⇄ JSON converter
Kubernetes manifests, CI pipelines, OpenAPI specs and application configs are YAML; APIs and tooling speak JSON. This converts either way as you type, detecting the direction from what you paste — JSON is valid YAML, so it tries JSON first. Multi-document YAML separated by --- round-trips to a JSON array.
How to use it
- Paste YAML or JSON, or drop a .yaml, .yml or .json file.
- The direction is detected automatically, or pin it with the Direction control.
- Adjust indentation and key sorting, then copy or download the result.
Questions
Can it convert a Kubernetes manifest?
Yes, including multi-document files: each document separated by --- becomes an element of the resulting JSON array.
Is YAML parsing safe?
It uses js-yaml's safe schema, which does not construct arbitrary types from tags. Nothing in your document can execute code.
Why did my tabs break the YAML?
YAML forbids tab characters for indentation. The tab option applies to JSON output only; YAML output falls back to two spaces.