Convert JSON to YAML for Kubernetes
Convert JSON manifests to YAML for Kubernetes, Helm, and DevOps workflows.
Open JSON <-> YAML Converter with a ready-to-run example.
- You receive JSON manifests but need YAML for Kubernetes.
- You want human-readable configs for reviews.
- You are switching between JSON and YAML in CI/CD pipelines.
- Paste JSON into the JSON <-> YAML Converter.
- Confirm detection and convert to YAML.
- Copy the YAML output into your manifest.
- Validate YAML after conversion to catch indentation issues.
- Use consistent spacing (2 spaces) for Kubernetes style.
- Keep values quoted if they look like numbers or booleans.
ConfigMap in JSON
{
"apiVersion": "v1",
"kind": "ConfigMap",
"metadata": { "name": "app-config" },
"data": { "LOG_LEVEL": "info", "FEATURE_X": "true" }
}
apiVersion: v1 kind: ConfigMap metadata: name: app-config data: LOG_LEVEL: info FEATURE_X: "true"
Service definition
{
"apiVersion": "v1",
"kind": "Service",
"metadata": { "name": "api-service" },
"spec": {
"selector": { "app": "api" },
"ports": [{ "port": 80, "targetPort": 8080 }]
}
}
apiVersion: v1
kind: Service
metadata:
name: api-service
spec:
selector:
app: api
ports:
- port: 80
targetPort: 8080
Yes. It keeps numbers, booleans, and strings as appropriate.
Yes. The tool converts in both directions.
Use the YAML Validator tool after conversion for strict validation.
Yes. It runs locally in your browser. No uploads.
Privacy-first: runs locally in your browser. No uploads.