JSON to YAML Converter
Convert JSON to clean, readable YAML. Perfect for Kubernetes configs, Docker Compose files, GitHub Actions workflows, and any config-as-code pipeline.
Indent
Options
JSON Input
YAML Output
Convert JSON to clean, readable YAML. Perfect for Kubernetes configs, Docker Compose files, GitHub Actions workflows, and any config-as-code pipeline.
Indent
Options
JSON Input
YAML Output
JSON and YAML represent the same data structures but with very different syntax. JSON is the format of the web — API responses, SDKs, and config files often produce it. YAML is the format of infrastructure — Kubernetes manifests, Docker Compose files, Helm charts, GitHub Actions, and Ansible playbooks all use it.
This converter translates any valid JSON into properly indented YAML, running entirely in your browser. No data leaves your machine.
environment blockStrings that would be ambiguous in YAML (booleans, numbers, special characters) are automatically quoted. Plain strings without special characters are written unquoted for readability. The "force quote strings" option wraps every string value in quotes.
JSON arrays become YAML sequences with - list items. Nested objects become indented mappings. The structure is preserved exactly.
Choose 2-space (default, common in Kubernetes and Helm) or 4-space indentation to match your project's conventions.
If your JSON has errors, use the JSON Repair tool first. To generate test JSON before converting, try the Correlated JSON Generator.
Browse all free JSON tools →
Related tools