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

YAML to JSON Converter

Paste YAML — a Kubernetes manifest, a Compose file, an OpenAPI spec — and get JSON back. Anchors and aliases are resolved, and a file with several documents (separated by ---) becomes a JSON array.

How to Convert YAML to JSON

  1. Add your YAML
    Paste it into the left box or open a .yaml / .yml file. Errors are reported with their line and column.
  2. Choose the output style
    Pretty-printed JSON is easier to read; turn it off for compact, single-line JSON.
  3. Copy or download the JSON
    Copy the result, or click Download to save a .json file.

Example

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

Frequently Asked Questions

More browser tools