YAML Formatter and Validator
Format YAML with even indentation or check that it is valid. Comments stay, and an error shows its line and column.
Runs on your device.
0 characters0 bytes
0 characters0 bytes
How to Use It
- Choose Format or Validate.
- Paste the YAML.
- Copy the output, or fix the error at the line and column shown.
Questions and Answers
Are comments (#) removed?
No. Formatting keeps comments and only evens out the indentation and spacing.
Is an untrusted YAML file safe here?
Yes. No tag runs code, and the number of aliases is limited, so a file that grows itself without end (billion laughs) is stopped.
Good to Know
YAML 1.2 is read with the core schema. Special tags, such as !!python or !!js, are read as plain text. A duplicate key is an error.
Related Tools
- JSON and YAML ConverterConvert JSON to YAML or YAML to JSON. Several YAML documents become one JSON array.
- JSON Formatter and ValidatorPretty-print or minify JSON, or find its errors with the line and column.
- XML Formatter and ValidatorPretty-print XML with clean indentation, minify it, or check that it is well-formed. An error shows its line and column.