JSON to YAML Converter
Data ConversionConvert JSON into clean, readable YAML for config files and manifests.
Runs entirely in your browser — nothing is uploaded
Features
- Quotes strings only where leaving them bare would change their meaning.
- Multi-line text becomes a readable | block scalar.
- Two- or four-space indentation, with sequences aligned correctly.
- Optional A–Z key sorting and --- document start.
- No YAML library downloaded — the converter is a few kilobytes.
How to use the JSON to YAML Converter
- 1Paste your JSON, or drop a .json file.
- 2Choose the indentation and quoting style.
- 3Copy the YAML or download it as a .yaml file.
Frequently asked questions
Why are some of my strings quoted and others not?
Because YAML would read them as something other than a string. NO, yes, on, off, true, 1.0 and 2026-01-08 all become booleans, numbers or dates if written bare, so they are quoted. This is the famous “Norway problem” — a country list with NO in it silently becoming false — and quoting on the way out is what prevents it.
Is the output valid for Kubernetes and Docker Compose?
Yes. The output is standard YAML with correctly aligned block sequences, which is what those tools parse. Set the indentation to whatever your repository already uses.
What happens to multi-line strings?
They become a | block scalar, so a script, a certificate or a SQL statement stays readable instead of turning into one long line full of \n escapes.
Is YAML always smaller than JSON?
Usually, because it drops the braces, brackets and most quotes — the size comparison is shown under the output. Deeply nested documents can go the other way, since YAML pays for nesting in indentation.