YAML Validator
Validate YAML in your browser and see the top-level type and keys. A syntax error is reported with its line and column, not as a silent empty document.
What this yaml validator does
The document is parsed with the vendored js-yaml engine and the report names the top-level type and keys. A parse failure includes the line and column from the parser, which is the difference between "invalid YAML" and a message you can act on.
How to use it
YAML Validator: paste the YAML into the box above, and press Run to get the validation report below.
Worked example
Input:
name: app
ports:
- 80
- 443
Output:
Valid YAML.
Top-level type: object
Keys (2): name, ports
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads YAML and returns validation report; reloading the page discards both.
The document is parsed with the vendored js-yaml engine and the report names the top-level type and keys. A parse failure includes the line and column from the parser, which is the difference between "invalid YAML" and a message you can act on.
Validate YAML in your browser and see the top-level type and keys. A syntax error is reported with its line and column, not as a silent empty document.
How to use it
YAML Validator: paste the YAML into the box above, and press Run to get the validation report below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads YAML and returns validation report; reloading the page discards both.
What to Expect
Best for
- Converting YAML to validation report when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
name: app ports: - 80 - 443
Sample output
Valid YAML. Top-level type: object Keys (2): name, ports
Frequently asked questions
How do I use the yaml validator?
YAML Validator: paste the YAML into the box above, and press Run to get the validation report below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.