What does a YAML validator do?
YAML relies on spacing, so a small slip, like a tab, a missing colon or a wrong indent, can break a whole file. Programs often report these errors poorly. A validator checks the file and tells you where the problem is.
This tool also re-formats valid YAML with the indent you choose, and keeps your comments. It counts the documents, so a file with --- separators is reported as several. The sample config is valid, with one document, and its inline list of tags is rewritten with spaces inside the brackets.
How to use the YAML Validator & Formatter
- Paste your YAML on the left.
- Choose a 2 or 4 space indent.
- Read the tidied YAML, or the error with its line and column.
- Copy or download the result.