Sample YAML File Download — Free DevOps Config Examples
Download free YAML config file examples from 1KB to 500KB — Docker Compose, Kubernetes manifests, GitHub Actions CI/CD workflows, and deeply nested structures with anchors. Use these YAML test files for parser validation, DevOps pipeline testing, and config management tools.
Generate custom YAML fileCreate up to 1GB locally in your browsersample-1kb.yaml
30 lines
Verified file details
- Filename
- sample-1kb.yaml
- Exact size
- 1,024 bytes
- Displayed size
- 1 KB
- MIME type
- application/octet-stream
- Lines
- 30
- Note
- simple-config
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/yaml/sample-1kb.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-10kb.yaml
300 lines
Verified file details
- Filename
- sample-10kb.yaml
- Exact size
- 10,240 bytes
- Displayed size
- 10 KB
- MIME type
- application/octet-stream
- Lines
- 300
- Note
- docker-compose-style
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/yaml/sample-10kb.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-50kb.yaml
1,500 lines
Verified file details
- Filename
- sample-50kb.yaml
- Exact size
- 51,200 bytes
- Displayed size
- 50 KB
- MIME type
- application/octet-stream
- Lines
- 1,500
- Note
- kubernetes-manifest-style
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/yaml/sample-50kb.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-100kb.yaml
3,000 lines
Verified file details
- Filename
- sample-100kb.yaml
- Exact size
- 102,400 bytes
- Displayed size
- 100 KB
- MIME type
- application/octet-stream
- Lines
- 3,000
- Note
- nested-deep
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/yaml/sample-100kb.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-500kb.yaml
15,000 lines
Verified file details
- Filename
- sample-500kb.yaml
- Exact size
- 512,000 bytes
- Displayed size
- 500 KB
- MIME type
- application/octet-stream
- Lines
- 15,000
- Note
- with-anchors
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/yaml/sample-500kb.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-docker-compose.yaml
90 lines
Verified file details
- Filename
- sample-docker-compose.yaml
- Exact size
- 3,072 bytes
- Displayed size
- 3 KB
- MIME type
- application/octet-stream
- Lines
- 90
- Note
- docker-compose
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/yaml/sample-docker-compose.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-k8s-deployment.yaml
60 lines
Verified file details
- Filename
- sample-k8s-deployment.yaml
- Exact size
- 2,048 bytes
- Displayed size
- 2 KB
- MIME type
- application/octet-stream
- Lines
- 60
- Note
- kubernetes-deployment
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/yaml/sample-k8s-deployment.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-github-actions.yaml
75 lines
Verified file details
- Filename
- sample-github-actions.yaml
- Exact size
- 2,560 bytes
- Displayed size
- 2.5 KB
- MIME type
- application/octet-stream
- Lines
- 75
- Note
- ci-cd-pipeline
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/yaml/sample-github-actions.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
Use cases for sample YAML files
- Testing YAML parsers (js-yaml, PyYAML, ruamel.yaml)
- Validating Docker Compose and Kubernetes configs
- Testing GitHub Actions / GitLab CI workflow parsing
- Benchmarking YAML vs JSON vs TOML parsing performance
- Testing YAML linters and schema validators
- Verifying anchor/alias expansion in YAML processors
YAML vs JSON vs TOML for configuration
| Feature | YAML | JSON | TOML |
|---|---|---|---|
| Comments | Yes (#) | No | Yes (#) |
| Readability | Excellent | Good | Excellent |
| Anchors/aliases | Yes (&/*) | No | No |
| Multi-document | Yes (---) | No | No |
| Indentation-sensitive | Yes (error-prone) | No (braces) | No (sections) |
| Used by | K8s, Docker, GitHub Actions | APIs, package.json, tsconfig | Cargo, pyproject, Hugo |
Common YAML gotchas
# Norway problem: "NO" is parsed as boolean false
country: NO # ❌ parsed as false
country: "NO" # ✅ string "NO"
# Version numbers: 1.0 is parsed as float
version: 1.0 # ❌ parsed as 1 (number)
version: "1.0" # ✅ string "1.0"
# Octal numbers: 0777 is NOT 777
mode: 0777 # ❌ parsed as 511 (octal)
mode: "0777" # ✅ string "0777"
# Always quote strings that look like booleans/numbersTechnical specifications
| Full name | YAML Ain't Markup Language |
| Extensions | .yaml, .yml |
| MIME type | text/yaml (RFC pending) |
| Current version | YAML 1.2.2 (2021) |
| Encoding | UTF-8 (recommended) |
| Superset of | JSON (valid JSON is valid YAML) |
Frequently Asked Questions
YAML vs JSON — Which should I use for config files?
YAML syntax — How does indentation work?
YAML anchors explained — How to avoid repetition?
What is YAML used for in DevOps?
Should I use .yaml or .yml extension?
Other data formats
Related reading
Mocking REST APIs with JSON Fixtures
Fast frontend iteration without a backend. MSW, json-server, and sample fixtures for users, products, and nested objects. Copy-paste examples.
Sample JSON Data for API Testing and Mocking
Free sample JSON files for testing REST APIs. Users, products, nested objects, GeoJSON, and API response wrappers with code examples.
Seeding Test Databases with Sample Data — SQL, JSON, CSV
How to seed development and staging databases using sample SQL dumps, JSON files, and CSV imports from TrueFileSize. Covers PostgreSQL, MySQL, SQLite, MongoDB, and Prisma.