JSON ⇄ YAML Conversion
Convert JSON and YAML — both common in config files — back and forth in one click.
Convert between JSON and YAML
YAML is a readability-focused config file format used in many places, such as Docker Compose, Kubernetes, and CI settings. Here you can convert in either direction between JSON, which programs handle easily, and YAML, which people read easily.
What's supported
Anything JSON can represent (objects, arrays, strings, numbers, booleans, null) can be converted in both directions. It handles nesting, flow style ([a, b]·{k: v}), block scalars (|·>), comments, and quoted strings.
Note: anchors/aliases (& *), custom tags, and multiple documents (----separated) are not supported. YAML containing these will raise an error.
FAQ
Can I convert both ways between JSON and YAML?
Yes. Switch the direction with the tabs at the top to convert either way.
What kind of YAML is supported?
In addition to anything JSON can represent, it supports nesting, flow notation, block scalars, comments, and quoted strings.
Are there any unsupported formats?
Anchors/aliases, custom tags, and multi-document separators are not supported, and will show an error.
Is my data safe?
Yes. Conversion happens only in your browser and nothing is ever sent out.
