YAML ↔ JSON Converter
Convert between YAML and JSON instantly. Supports nested objects, arrays, multiline strings, and more. Everything runs in your browser — nothing is sent to a server.
How to use
Paste YAML into the left panel and click YAML → JSON to convert. Or paste JSON into the right panel and click JSON → YAML. The result appears in the opposite panel. Click Copy Output to copy the last-converted result.
Supported YAML features
Key-value pairs, nested indentation, arrays (- item), quoted and unquoted strings, numbers, booleans (true/false/yes/no), null values, comments (#), and multiline strings (| literal block, > folded block). Anchors/aliases and complex multi-document YAML are not supported.
Why convert YAML to JSON?
YAML is popular for config files (Docker Compose, Kubernetes, GitHub Actions) while JSON is the standard for APIs. This tool bridges the gap — paste a config snippet and get valid JSON you can use programmatically, or convert API responses back into readable YAML.
Privacy
Your data never leaves your browser. No server requests are made — the parser and serializer run entirely in JavaScript on your machine.