OneFreePlace · Developer Tools · #342

YAML Validator

Validate YAML 1.2 syntax, inspect anchors and aliases, catch portability/style hazards, and optionally validate YAML data against JSON Schema — entirely in your browser.

100% freeLocal processingNo upload
YAML input0 lines · 0 B
1
•
Ready to validateYAML stays on this device.
Run validation to see precise diagnostics.
Documents—
Nodes—
Max depth—
Anchors / aliases—
Warnings—
Errors—
Large integers—
Time—

Diagnostics

Click a row to jump to the source line.

SeverityLineCodeMessage
Validate to populate diagnostics.
JSON SchemaJSON or YAML format

Schema result

First validate the YAML, then add a schema.
Dialect—
Valid docs—
Schema errors—
References—
Drop YAML files hereor click to choose multiple .yaml/.yml files. Validation and report ZIP creation stay local.

What “valid” means

The syntax pass checks YAML structure under YAML 1.2 Core or JSON-compatible scalar resolution. Duplicate mapping keys, broken flow collections, invalid indentation, unknown aliases and malformed block scalars are rejected.

Anchors & aliases

Anchors and aliases are audited without expanding the entire graph. Reusing an anchor name is accepted because YAML 1.2 resolves aliases to the most recent preceding anchor.

Portability audit

The validator flags YAML 1.1-style boolean words such as yes/on, leading-zero identifiers, date-like scalars, trailing whitespace and long lines so files behave more predictably across ecosystems.

JSON Schema

After syntax validation, JSON-compatible YAML can be validated against JSON Schema Draft 2020-12, 2019-09 or Draft-07. Schema input may itself be JSON or YAML.

Safety limits

Alias count and nesting depth limits help prevent pathological documents from monopolizing the browser. You can raise the limits for trusted files.

Privacy

No account, upload or telemetry is required. Parsing, linting, schema validation, batch processing and ZIP creation run locally.

Scope note

This validator targets the YAML 1.2 constructs used by modern configuration and data files, including block/flow collections, anchors, aliases, merge keys, directives, block scalars and custom tags. Application-specific tag semantics are intentionally not executed.