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
File details and verification
- Filename
- sample-1kb.yaml
- Exact size
- 1,024 bytes
- Displayed size
- 1 KB
- Catalog status
- Valid catalog fixture
- SHA-256
- 2e383ce376f7cdea9bc326b12d679a226657fff5a9e1f99cda389caa956f5863
- Header signature
- Not applicable (no stable header signature for this format)
- Verified on
- 2026-08-10
- MIME type
- application/octet-stream
- Lines
- 30
- Note
- simple-config
- License
- CC0 / Public Domain
- Download URL
- https://cdn.truefilesize.com/yaml/sample-1kb.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-10kb.yaml
300 lines
File details and verification
- Filename
- sample-10kb.yaml
- Exact size
- 10,240 bytes
- Displayed size
- 10 KB
- Catalog status
- Valid catalog fixture
- SHA-256
- 7f517994057ae9a52d3e781abec15f81e01aefc0cb89ca85603a584d057788bb
- Header signature
- Not applicable (no stable header signature for this format)
- Verified on
- 2026-08-10
- MIME type
- application/octet-stream
- Lines
- 300
- Note
- docker-compose-style
- License
- CC0 / Public Domain
- Download URL
- https://cdn.truefilesize.com/yaml/sample-10kb.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-50kb.yaml
1,500 lines
File details and verification
- Filename
- sample-50kb.yaml
- Exact size
- 51,200 bytes
- Displayed size
- 50 KB
- Catalog status
- Valid catalog fixture
- SHA-256
- 6c084b23aef2619cd6cd6bc7413790fe16f62b581501d3834101f0f76ce2adb1
- Header signature
- Not applicable (no stable header signature for this format)
- Verified on
- 2026-08-10
- MIME type
- application/octet-stream
- Lines
- 1,500
- Note
- kubernetes-manifest-style
- License
- CC0 / Public Domain
- Download URL
- https://cdn.truefilesize.com/yaml/sample-50kb.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-100kb.yaml
3,000 lines
File details and verification
- Filename
- sample-100kb.yaml
- Exact size
- 102,400 bytes
- Displayed size
- 100 KB
- Catalog status
- Valid catalog fixture
- SHA-256
- 60e8c2ec951605671e1df124fd7f28552ef8d1e0c4a0a219353a183b41f35793
- Header signature
- Not applicable (no stable header signature for this format)
- Verified on
- 2026-08-10
- MIME type
- application/octet-stream
- Lines
- 3,000
- Note
- nested-deep
- License
- CC0 / Public Domain
- Download URL
- https://cdn.truefilesize.com/yaml/sample-100kb.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-500kb.yaml
15,000 lines
File details and verification
- Filename
- sample-500kb.yaml
- Exact size
- 512,000 bytes
- Displayed size
- 500 KB
- Catalog status
- Valid catalog fixture
- SHA-256
- 81b89847b605352203f55475ef2716d5570b265b75a2f0154cffed33d95b1619
- Header signature
- Not applicable (no stable header signature for this format)
- Verified on
- 2026-08-10
- MIME type
- application/octet-stream
- Lines
- 15,000
- Note
- with-anchors
- License
- CC0 / Public Domain
- Download URL
- https://cdn.truefilesize.com/yaml/sample-500kb.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-docker-compose.yaml
90 lines
File details and verification
- Filename
- sample-docker-compose.yaml
- Exact size
- 897 bytes
- Displayed size
- 897 B
- Catalog status
- Valid catalog fixture
- SHA-256
- 7d58397907b9c53ae805298023efd05a57a79dd90af5620cb4c774b2977002f1
- Header signature
- Not applicable (no stable header signature for this format)
- Verified on
- 2026-08-10
- MIME type
- application/octet-stream
- Lines
- 90
- Note
- docker-compose
- License
- CC0 / Public Domain
- Download URL
- https://cdn.truefilesize.com/yaml/sample-docker-compose.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-k8s-deployment.yaml
60 lines
File details and verification
- Filename
- sample-k8s-deployment.yaml
- Exact size
- 1,133 bytes
- Displayed size
- 1.1 KB
- Catalog status
- Valid catalog fixture
- SHA-256
- 10dfa4b8a02539aa45736612ac3a178ca53510fc028a81aa09a0657a358f6649
- Header signature
- Not applicable (no stable header signature for this format)
- Verified on
- 2026-08-10
- MIME type
- application/octet-stream
- Lines
- 60
- Note
- kubernetes-deployment
- License
- CC0 / Public Domain
- Download URL
- https://cdn.truefilesize.com/yaml/sample-k8s-deployment.yaml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-github-actions.yaml
75 lines
File details and verification
- Filename
- sample-github-actions.yaml
- Exact size
- 1,189 bytes
- Displayed size
- 1.2 KB
- Catalog status
- Valid catalog fixture
- SHA-256
- 1601635e850e487a0762356f39ef023c36f5a4a5dae682c70e49497678c9d0b8
- Header signature
- Not applicable (no stable header signature for this format)
- Verified on
- 2026-08-10
- MIME type
- application/octet-stream
- Lines
- 75
- Note
- ci-cd-pipeline
- License
- CC0 / Public Domain
- Download URL
- https://cdn.truefilesize.com/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.