← All toolsYAML JSON
YAML ⇄ JSON
Convert between YAML and JSON, with validation.
Why this exists
Kubernetes speaks YAML, APIs speak JSON, and much of DevOps is moving data between the two. Also the quickest way to find the indentation error a YAML parser is complaining about.
🔒 Runs in your browser — nothing is sent anywhere
YAML → JSON
{
"services": {
"web": {
"image": "nginx:alpine",
"ports": [
"8080:80"
],
"restart": "unless-stopped"
}
}
}Merge keys (<<: *anchor) are resolved, and a multi-document stream becomes a JSON array. Under YAML 1.2 NO is the string “NO”, not false — you get a warning when that could bite.