YAML Validator & Formatter
Validate YAML, convert YAML ↔ JSON and re-indent YAML as you type. Supports multi-document files.
The result appears here as you type.
YAML Validator & Formatter FAQ
How do I validate a YAML file?
Paste it into the YAML box or click Open file. If it is valid you see Valid YAML and the number of documents; if not, the error box shows the line and column and the lines around the problem.
Why does my YAML say bad indentation?
Items at the same level must start in the same column, and YAML does not allow tabs for indentation. Look at the line shown in the error and the line above it, and use spaces only.
Does converting keep my YAML comments?
No. JSON has no comments, and Format YAML rebuilds the file from its data, so comments are removed and anchors are expanded. Keep the original if you need them.
What is the difference between YAML and JSON?
They hold the same kinds of data. YAML uses indentation and allows comments, so people use it for config files; JSON uses brackets and quotes and is what most APIs send. Every JSON file is also valid YAML.
Is my YAML uploaded anywhere?
No. Validation and conversion run in your browser, so files with passwords or keys never leave your device. Nothing is saved.