JSON to YAML Converter
Convert JSON to clean indented YAML for Kubernetes manifests, Docker Compose, CI configs, and Helm charts. Preserves nested structures.
How to use the json to yaml converter
Paste JSON on the left. Clean indented YAML appears live on the right — the format Kubernetes, Helm, Docker Compose, and GitHub Actions expect.
Formula & explanation
Object keys become YAML mapping keys, arrays become YAML sequences with leading dashes. Strings are quoted only when they'd parse as a different type (e.g. "true", "123").
Examples
{"version":3,"services":{"web":{"image":"nginx"}}} becomes a Compose-style YAML
Frequently asked questions
- Why are some strings quoted and others aren't?
- We quote strings that would otherwise round-trip to a different type ("true", "3.14", "null"), or contain special characters like colons. Plain identifier strings are left bare for readability.
- Can I use this for Kubernetes manifests?
- Yes. Output is standard indented YAML that kubectl, Helm, and Argo all accept. For multiple documents in one file, convert each one separately and join with "---" separators.
Related developer tools tools
- YAML to JSON ConverterConvert YAML to JSON for APIs, config files, and pipelines. Supports indented mappings, sequences, scalars, and nested objects.
- JSON DiffCompare two JSON values semantically. Ignores key order; shows added, removed, and changed fields with their JSONPath — great for diffing API responses and config files.
- XML to JSON ConverterConvert XML to JSON for legacy API integration, SOAP responses, and config migration. Handles attributes, namespaces, and text content.
- JSON FormatterPretty-print, minify, and validate JSON. Detects syntax errors with line numbers and supports nested structures of any depth.
- JSON to XML ConverterConvert JSON objects and arrays to well-formed XML. Maps object keys to elements, array items to repeated elements, with optional root wrapper.
- JSON to CSV ConverterConvert JSON arrays to CSV with automatic header detection from object keys. Handles nested values and arbitrary delimiters.