RealJSON
Try now

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

 

JSON to YAML — Convert Instantly in Your Browser

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.

Common Use Cases

  • Convert a JSON API spec into a Kubernetes ConfigMap or Secret manifest
  • Translate a JSON config into a Docker Compose environment block
  • Move JSON settings into a GitHub Actions workflow input
  • Convert Terraform JSON output to YAML for Helm chart values
  • Produce readable YAML from programmatically generated JSON

YAML Output Details

String Quoting

Strings 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.

Arrays and Nested Objects

JSON arrays become YAML sequences with - list items. Nested objects become indented mappings. The structure is preserved exactly.

Indentation

Choose 2-space (default, common in Kubernetes and Helm) or 4-space indentation to match your project's conventions.

Related Tools

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 →