YAML to JSON Converter

Convert YAML to JSON or JSON to YAML in your browser: Kubernetes, Docker Compose, GitHub Actions and OpenAPI files. Errors show the line. Free, no upload.

Runs in your browser. Your files are never uploaded. How it works

YAML is easier to read; many tools and APIs only accept JSON. Paste a Kubernetes manifest, a Docker Compose file, a GitHub Actions workflow or an OpenAPI spec and get the same data as JSON. If the YAML has a mistake, such as wrong indentation or a tab, the error message says what is wrong.

A Kubernetes Deployment in YAML converted to formatted JSON
A Deployment manifest. A file of 500 such documents (109 KB) converted in 0.1 s into a JSON list of 500.

Choose JSON → YAML (or press ⇄) to turn JSON into YAML.

Frequently asked questions

Does it support several documents in one file?

Yes. A YAML file with several documents separated by --- becomes a JSON list with one entry per document.

Are comments kept?

No. JSON has no comments, so they are dropped going to JSON and cannot come back.

More ways to use JSON to CSV

Related tools