Validate and format YAML, or convert it to JSON.
The YAML formatter validates YAML – Docker Compose, Kubernetes, GitHub Actions or any config file – and rewrites it with consistent indentation. Errors are reported with their line and column, the classic tab and indentation mistakes included.
Switch the output to JSON to convert YAML to JSON. Files with several documents separated by --- are supported.
Line and column of syntax errors.
2 or 4 spaces, consistent quoting.
Convert in one click.
Handles files with --- separators.
The YAML specification only allows spaces for indentation.
No, formatting rebuilds the YAML from its data, so comments are removed.
No, it's parsed in your browser.