YAML Format Guide
Human-readable data serialization format for configuration and data exchange
About YAML Format
YAML (YAML Ain't Markup Language) is a human-readable data serialization standard created by Clark Evans in 2001. It uses indentation-based structure with key-value pairs, lists, and nested objects. YAML is widely adopted for configuration files in tools like Docker, Kubernetes, Ansible, GitHub Actions, and many programming frameworks.
YAML's clean, minimal syntax makes it easy to read and write compared to alternatives like JSON or XML. It supports complex data structures including nested mappings, sequences, scalars, and even anchors and aliases for referencing repeated content. The .yaml extension is the official recommendation, while .yml is a common shorter alternative.
Available Conversions
Convert YAML to AsciiDoc for technical documentation
Convert YAML to AsciiDoc markup for comprehensive documentation
Convert YAML to Amazon Kindle Format 8
Encode YAML content to Base64 for data transfer
Convert YAML to BBCode for forum posting
Convert YAML to CSV for spreadsheet import
Convert YAML to legacy Microsoft Word format
Convert YAML to DocBook XML for technical docs
Convert YAML to Microsoft Word format
Convert YAML to EPUB e-book format
Convert YAML to EPUB3 with HTML5 support
Convert YAML to FictionBook 2.0 format
Encode YAML content to hexadecimal
Convert YAML to web-ready HTML
Convert YAML to INI configuration format
Convert YAML to JSON for APIs and data exchange
Convert YAML to plain text log format
Convert YAML to MD (Markdown) for documentation
Convert YAML data to Markdown for readable documentation and reports
Convert YAML to MediaWiki markup for Wikipedia-style wikis
Convert YAML to Mobipocket for Kindle
Convert YAML to OpenDocument Text
Convert YAML to Emacs Org-mode format
Convert YAML to PDF for sharing
Convert YAML to PowerPoint presentation
Convert YAML to Java Properties format
Convert YAML to reStructuredText
Convert YAML to Rich Text Format
Convert YAML to SQL INSERT statements
Convert YAML to SVG vector graphics
Convert YAML to StarOffice Writer format
Convert YAML to LaTeX for typesetting
Convert YAML to plain text without formatting
Convert YAML to Textile markup
Convert YAML to TOML configuration format
Convert YAML to Tab-Separated Values
Convert YAML to plain text
Convert YAML to MediaWiki markup
Convert YAML to Excel spreadsheet
Convert YAML to XML for data exchange
Convert .yaml to .yml extension
YAML Features
- Human-Readable: Clean syntax with minimal punctuation and indentation-based structure
- Data Types: Strings, integers, floats, booleans, null, dates, and timestamps
- Collections: Sequences (lists) and mappings (dictionaries) with arbitrary nesting
- Multi-Document: Multiple documents in a single file separated by ---
- Anchors & Aliases: Reference and reuse repeated data structures
- Comments: Full comment support with # character
- Unicode: Full UTF-8 encoding support
- JSON Superset: YAML 1.2 is a superset of JSON — valid JSON is valid YAML
- Multi-line Strings: Literal (|) and folded (>) block styles for long text
- Tags & Types: Custom type annotations for specialized parsing
Common Uses
- Docker: docker-compose.yaml for container orchestration
- Kubernetes: Pod, Service, Deployment manifests
- Ansible: Playbooks, roles, and inventory files
- GitHub Actions: CI/CD workflow definitions (.github/workflows/)
- OpenAPI/Swagger: API specification files
- Static Site Generators: Jekyll, Hugo configuration and front matter
- Spring Boot: application.yaml configuration
- Helm Charts: Kubernetes package manager templates