Free · runs in your browser · no upload · no quota

JSON to YAML Converter

Convert JSON into clean, readable YAML — the format of Kubernetes manifests, Docker Compose files, GitHub Actions and most configuration files. The page validates your JSON first and points to the line of any error.

How to Convert JSON to YAML

  1. Add your JSON
    Paste it into the left box or open a .json file. Invalid JSON is reported with its line and column.
  2. Pick the indentation
    Two spaces is the YAML convention; choose four if your project uses it.
  3. Copy or download the YAML
    Copy the result, or click Download to save a .yaml file.

Example

JSON
{
  "service": "web",
  "ports": [80, 443],
  "env": {"DEBUG": false}
}
YAML
service: web
ports:
  - 80
  - 443
env:
  DEBUG: false

Frequently Asked Questions

More browser tools