YAML holds the same data as JSON in a form that is easier to read and to edit by hand: no braces, few quotes, structure shown by indentation. It is the format of Docker Compose, Kubernetes and GitHub Actions.
Paste JSON and the YAML appears below. Strings that could be mistaken for numbers or booleans are quoted automatically so their meaning does not change.
How to use the JSON to YAML tool
- Paste the JSON or open the file that holds it.
- Choose two or four spaces of indentation.
- Copy or download the YAML.
Popular uses
- Writing Kubernetes and Docker Compose files
- Turning an API response into a config file
- Front matter for static site generators
Tips for the best result
- YAML forbids tabs for indentation; the output uses spaces only.
- Keep a copy of the JSON if other tools still need it.
Quick facts
| Price | Free |
|---|---|
| Works with | Text |
| Where it runs | In your browser, on your device |
| Account | Not needed |