YAML Output
YAML output will appear here
Paste JSON on the left to generate YAML. Or load sample data to see a demo.
Try JSON to YAML with sample input
Paste JSON on the left to generate YAML. Or load sample data to see a demo.
Try JSON to YAML with sample input
Our JSON to YAML converter lets you paste JSON on the left and copy YAML output on the right.
Paste your JSON into the editor to start your JSON to YAML conversion. If you want a quick demo, click "Sample".
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": { "name": "demo-web" },
"spec": {
"replicas": 2,
"template": {
"spec": {
"containers": [
{ "name": "web", "image": "nginx:1.27" }
]
}
}
}
}The JSON to YAML converted output will appear on the right panel as you type.
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-web
spec:
replicas: 2
template:
spec:
containers:
- name: web
image: nginx:1.27
Use “Copy” to copy YAML to your clipboard, or “Download” to save it as a .yaml file.
Common questions about converting JSON to YAML
Format, validate and process JSON
Export to other popular formats
Convert to JSON from other types
Generate code from JSON data
Format and beautify other code formats