A Kubernetes-style manifest
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
app: web{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "nginx",
"labels": {
"app": "web"
}
}
}Convert YAML to JSON or JSON to YAML instantly, right in your browser.
The result will appear here.
Was this tool useful?
YAML and JSON describe the same kind of data — nested objects, arrays, strings, numbers — with different syntax. YAML is the format of choice for Kubernetes manifests, GitHub Actions workflows, Docker Compose files and most modern config files, because it reads cleanly without JSON's braces and quotes. JSON is what your code actually parses at runtime.
This converter runs js-yaml, the same YAML 1.2 parser used by ESLint and many other JavaScript tools, entirely in your browser. Nothing you paste is uploaded anywhere.
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
app: web{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "nginx",
"labels": {
"app": "web"
}
}
}