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
Edit, format, and beautify JSON
Validate, fix, and inspect JSON
Compare, measure, and map JSON
Convert JSON to other formats
Convert other formats to JSON
Generate code and format other languages