YAML
YAML (YAML Ain't Markup Language) is a configuration-oriented data serialization format using indentation for hierarchy, supporting comments and references, and better suited to hand editing than JSON.
Purpose
To provide a configuration format easier to write and maintain by hand than JSON, supporting comments, multiple documents, and anchor references.
Mechanism
Indentation (spaces, never tabs) expresses nesting, colons separate keys from values, and dashes mark list items. It supports comments (#), multiple documents (---), and anchors (&) with aliases (*) for reference. Watch out for type inference (yes/no becoming booleans).
Use cases
- CI/CD configuration (GitHub Actions, GitLab CI)
- Kubernetes manifests
- Docker Compose
- Application configuration files
Examples
- Input
name: Ada age: 36OutputThe object {name:"Ada", age:36}Indentation expresses hierarchy
Common errors
- Indenting with tabs (YAML allows spaces only)
- Use spaces for indentation consistently
Related terms
JSON
JSON (JavaScript Object Notation) is a lightweight data interchange format based on JavaScript object literals, using key-value pairs and arrays. GLOSSARY
TOML
TOML (Tom's Obvious, Minimal Language) is a configuration-oriented format representing data with tables and key-value pairs, with explicit semantics and no implicit type inference. GLOSSARY
XML
XML (Extensible Markup Language) is the W3C-standard markup language describing data with a tag tree, supporting namespaces, schema validation, and style transformation. GLOSSARY
INI
INI is a traditional configuration file format that groups settings with [section] headers and key=value pairs; it is simple but unstandardized, and implementations differ slightly. GLOSSARY
Frontmatter
Frontmatter is a YAML/TOML/JSON metadata block placed at the top of a document, delimited by ---, commonly used by static site generators. GLOSSARY
Related tools
YAML Converter
Convert between YAML and JSON online. Free, private, and 100% client-side. TOOL
JSON YAML Converter
Convert between JSON and YAML formats online. Free, private, and 100% client-side. TOOL
Yaml To Xml
Yaml To Xml — pure client-side tool. Privacy-first, no server round-trip. TOOL
Yaml To Csv
Yaml To Csv — pure client-side tool. Privacy-first, no server round-trip. TOOL