YAML ↔ JSON Converter

Convert between YAML and JSON in either direction. Useful for Kubernetes manifests, CI configs, and OpenAPI specs.

Enter input above to see the result.

What is this for?

YAML and JSON describe the same things — nested maps, lists, primitives — but trade off readability vs strictness. YAML is friendlier for humans (Kubernetes manifests, GitHub Actions, OpenAPI, most CI configs); JSON is what APIs and machine-readable formats ship. This converter flips between them losslessly for the structures both can express. YAML uses js-yaml (YAML 1.2); JSON uses the native API. Both directions run in your browser.

When to use it

Common gotchas