When you need the other format
A docker-compose file, a Kubernetes manifest or a GitHub Actions workflow is YAML, while the API or the script that produces the data speaks JSON. Paste either one and get the other, with the indentation you pick.
Convert JSON to YAML or YAML to JSON as you type, for config files, Kubernetes manifests or CI pipelines, with errors located to the line.
The result will appear here
A docker-compose file, a Kubernetes manifest or a GitHub Actions workflow is YAML, while the API or the script that produces the data speaks JSON. Paste either one and get the other, with the indentation you pick.
Strings, numbers, booleans, null, lists and maps convert both ways without loss. YAML anchors and merge keys are expanded into their values, comments are dropped (JSON has none), several documents separated by --- become a JSON array, and an unquoted date stays text instead of becoming a timestamp. A file built to explode in size through aliases is refused.
Paste your JSON or YAML into the input panel. Choose the conversion direction using the toolbar.
Select JSON → YAML or YAML → JSON, and pick your preferred indentation (2 or 4 spaces).
The converted output appears instantly in the output panel. Click the copy button to copy it to your clipboard.
JSON and YAML are two of the most popular data serialization formats. JSON is the standard for APIs and data exchange, while YAML is preferred for configuration files due to its human-readable syntax.
This converter lets you switch between both formats instantly, which is useful when migrating configs, debugging API responses, or preparing data for different systems.
Quick & easyThis converter runs entirely in your browser. No data is ever sent to a server — the conversion happens locally using JavaScript.
Configs often hold hostnames, keys and tokens: the conversion happens in your browser only.
Runs in your browserEverything you need to know about converting JSON and YAML