Programs and APIs usually want JSON even when people wrote the settings in YAML. The converter also works as a checker: a wrong indent or a missing colon is reported with its line.
Anchors and aliases are expanded into plain values, and a file holding several documents separated by — becomes a JSON array.
How to use the YAML to JSON tool
- Paste YAML or open a .yaml or .yml file.
- Fix any error the message points to.
- Copy or download the JSON.
Popular uses
- Checking a Kubernetes or CI file for syntax errors
- Passing config values to a script that reads JSON
- Seeing the real structure of a long YAML file
Tips for the best result
- Most YAML errors are indentation: items of one list must start in the same column.
- A value like no or on may be read as a boolean; quote it if you mean the word.
Quick facts
| Price | Free |
|---|---|
| Works with | Text |
| Where it runs | In your browser, on your device |
| Account | Not needed |