YAML to JSON Converter
Convert YAML files such as Docker Compose, Kubernetes or CI configs into JSON.
Loading tool…
How to use the YAML to JSON Converter
- 1
Paste YAML or open a .yaml or .yml file.
- 2
Pick the JSON indentation and YAML version.
- 3
Copy the JSON or download it.
Frequently asked questions
Are anchors and aliases supported?
Yes. Anchors (&), aliases (*) and merge keys (<<) are resolved in the JSON output.
What about files with several documents?
Documents separated by --- are combined into a JSON array, one item per document.
Why is "no" converted to false?
That is YAML 1.1 behaviour. The default YAML 1.2 mode keeps yes, no, on and off as text.