Convert YAML to JSON or JSON to YAML instantly in your browser.
YAML (YAML Ain't Markup Language) is a human-friendly serialization format popular in configuration files — Docker Compose, Kubernetes manifests, GitHub Actions workflows, and more. JSON (JavaScript Object Notation) is the standard for data interchange between APIs and web services.
This tool converts between the two formats entirely in your browser. No data leaves your machine. The YAML parser handles the most common real-world patterns.
Supported: key-value pairs, nested objects (indentation), block sequences (- item), single and double-quoted strings, unquoted scalars, booleans (true/false/yes/no/on/off), integers, floats, null/~, and comments (#).
Not supported: anchors & aliases (&/*), multi-document streams (---), block scalars (|/>), and flow-style collections ({}/[] at the value level). Use a full YAML library for these cases.