YAML Validator
YAML
Paste YAML with up to 1,000,000 characters. Validation happens in this browser.
Check YAML syntax without uploading your data. The validator uses the local js-yaml parser with CORE_SCHEMA to read one document or a multi-document stream. It reports success with the document count or shows the parser error. Duplicate mapping keys are errors, while anchors, aliases, and merge keys are processed under the parser’s configured safety limits.
How to validate a YAML stream
-
1
Paste YAML
Enter up to 1,000,000 characters directly in the browser. There is no file upload.
-
2
Run the local parser
js-yaml `loadAll` reads a single document or a stream separated with `---`, using CORE_SCHEMA.
-
3
Review the stream
The second step lets you check the local draft before continuing. A stream may contain at most 100 documents.
-
4
Read the result
See a success message and document count or read the parser error, then copy the result or start over.
Single and multi-document YAML
A YAML stream can contain one document:
service:
name: example
enabled: true
It can also contain several documents separated by ---:
name: first
---
name: second
The validator accepts up to 100 documents in one stream. If parsing succeeds, the result states how many documents were read. If any part of the stream fails, it displays the message returned by js-yaml.
Parser behavior
The tool uses js-yaml locally with CORE_SCHEMA. Duplicate keys in the same mapping cause an error instead of silently replacing a value. Anchors, aliases, and merge keys are processed using the parser’s configured safety limits.
CORE_SCHEMA determines how supported plain scalars are constructed. The validator does not provide a YAML 1.1 switch or infer types beyond that schema. Quoting a value is the clearest way to preserve it as text when its type matters to your application.
Limits and scope
- Input may contain at most 1,000,000 characters and 100 documents.
- The tool checks YAML parsing and construction under the configured schema.
- It does not validate JSON Schema, OpenAPI, Kubernetes, Ansible, CI configuration, or other application rules.
- It does not prove that required fields exist or that values are suitable for a particular program.
- There is no file upload or server-side parser.
Successful parsing means the stream is accepted by this parser configuration. Another application can use a different YAML version, schema, tag set, or domain-specific validation and may reach a different conclusion.
Browser-local privacy
Your YAML, review draft, parser result, and document count stay in the browser. Nothing is uploaded, sent through Livewire, placed in the URL, or saved in server history. The three-step flow handles pasting, review, and results locally; Start over clears its local draft. Do not paste confidential configuration on a shared or untrusted device.
Frequently Asked Questions
Yes. It uses loadAll and accepts up to 100 documents separated by YAML document markers. One parser error makes the stream validation fail and the parser message is shown.
No. It checks YAML parsing with CORE_SCHEMA only. It does not know the required fields, value rules, or schema of any application format.
Duplicate keys cause an error. Anchors, aliases, and merge keys are handled within the safety limits configured for the local js-yaml parser.
No. The input and result remain in the browser and do not enter the URL or server history. Start over clears the local draft.
Related Tools
HEX Color Picker
Pick or enter a HEX colour and get RGB, HSL, approximate CMYK, relative luminance and contrast ratios against white and black.
Color Palette Generator
Generate monochromatic, analogous, complementary, triadic or tetradic color palettes from a base HEX color and export copy-ready CSS variables.
FPS Counter
Measure browser FPS with requestAnimationFrame, smoothing, min/max frame rate, warnings and an optional graph. Runs locally with no upload or API.
Phone Validator
Validate phone numbers by country, detect the region and type, and normalize valid numbers to E.164, international, national and RFC 3966 formats.
BBCode to HTML Converter
Convert BBCode (bulletin-board markup) to clean HTML. Handles formatting tags, lists, quotes, code, images, links and tables.
Random Color Palette Generator
Generate random color palettes from 2 to 15 swatches, choose a vibrant, pastel, muted or dark style, then copy HEX codes or CSS variables.