OpsCanary
Tools / YAML ↔ JSON

YAML ↔ JSON Converter

Convert between YAML and JSON instantly. Perfect for Kubernetes manifests, Terraform configs, and CI/CD pipelines. Runs entirely in your browser.

YAML333 chars
JSON
{
  "apiVersion": "apps/v1",
  "kind": "Deployment",
  "metadata": {
    "name": "nginx",
    "namespace": "default"
  },
  "spec": {
    "replicas": 3,
    "selector": {
      "matchLabels": {
        "app": "nginx"
      }
    },
    "template": {
      "metadata": {
        "labels": {
          "app": "nginx"
        }
      },
      "spec": {
        "containers": [
          {
            "name": "nginx",
            "image": "nginx:1.25",
            "ports": [
              {
                "containerPort": 80
              }
            ]
          }
        ]
      }
    }
  }
}

Learn Kubernetes, Helm, and Terraform config patterns on OpsCanary.

Browse K8s →