Free online YAML Formatter, Validator, and Minifier. Format, beautify, and inspect YAML 1.2 documents with indentation control, multi-document support, and a live structure tree — all in your browser.
YAML (YAML Ain’t Markup Language) is a human-friendly data serialization format used for configuration files, CI pipelines, Kubernetes manifests, Docker Compose, and API specs. This formatter parses your document with js-yaml (YAML 1.2 by default), then rewrites it with consistent indentation and spacing without sending data to a server.
.yaml / .yml file, or load a sample.
YAML hierarchy is defined by spaces (never tabs). Scalars include strings, integers, floats, booleans, and nulls. Collections are mappings (objects) and sequences (arrays). Multiple documents can appear in one file separated by ---.
Key/value pairs using key: value. Nested maps increase indentation by your chosen space count.
Lists use - item in block style or [a, b] in flow style. Order is always preserved.
Reuse nodes with &name and *name. Parsing expands aliases into the data model for inspection.
name:John age:25 skills: -PHP -Laravel
name: John age: 25 skills: - PHP - Laravel