JSON to YAML

Convert JSON into YAML.

Loading tool…
Try next →JSON FormatterFormat and validate JSON.

About JSON to YAML

Paste JSON and get the equivalent YAML. The output uses YAML's indentation-based layout, with quotes only where they are actually needed, which is easier to read and to edit by hand. Useful when you have JSON from an API or a config export and you want it in the YAML format that tools like Docker Compose, Kubernetes, or CI pipelines expect.

The conversion happens in your browser. Your JSON is processed with JavaScript on your own device, so nothing is uploaded to a server. It is free, needs no account, and has no limits or watermarks. Boring, but it works.

Frequently asked questions

Do I need an account?
No. The tool is free and needs no sign-up. There are no usage limits and nothing is added to the output, so you can convert as many files as you want.
Is my JSON sent to a server?
No. Everything runs in your browser and your JSON stays on your device. Because nothing is uploaded, it is safe to use with config that contains private values.
How do I use it?
Paste your JSON into the input box and the YAML version appears next to it. Copy it out when you are happy with it. There is nothing to install and no setup.
How is the YAML formatted?
The converter produces standard indented YAML and only adds quotes where a value would otherwise be ambiguous — for example a string that looks like a number or the word yes. The result reads like YAML you would write by hand.
What if my JSON is not valid?
If the JSON cannot be parsed — a trailing comma, a missing bracket, single quotes instead of double — you will see an error rather than YAML. Paste well-formed JSON and it will convert. The tool reads strict JSON, not loose JavaScript object notation with unquoted keys.