Configuration sample files
YAML, TOML and INI files for testing configuration loaders, linters and converters.
Formats in this category
| Format | What it is | Sizes |
|---|---|---|
| YAML sample files.yaml application/yaml | Human-friendly data serialisation that relies on indentation. The format of most infrastructure configuration. | 1 KB to 1 MB |
| TOML sample files.toml application/toml | A configuration format with explicit types and sections, used by Rust, Python and many tools. | 1 KB to 1 MB |
| INI sample files.ini text/plain | Simple key = value settings grouped into sections. Old, informal and still everywhere. | 1 KB to 1 MB |
| JSON sample files.json application/json | The standard data format of web APIs: objects, arrays, strings, numbers, booleans and null. | 1 KB to 10 MB |
| XML sample files.xml application/xml | Structured, self-describing documents built from nested elements and attributes. | 1 KB to 10 MB |
About these files
Configuration formats look simple and hide many edge cases: implicit typing in YAML, table arrays in TOML and the complete absence of a standard for INI.
These samples use the main features of each format with ordinary, predictable values, so they make a sound baseline before you test the awkward cases.
Ready-made samples
Hand-designed files with realistic content or a specific edge case.
| File | Format | Size | Contents | Download |
|---|---|---|---|---|
| Sample Docker Compose YAMLsample-docker-compose.yaml | YAML | 744 B744 bytes | Features: Anchors and aliases, sequences, nested mappings, quoted strings, comments | Download YAML |
Popular downloads by size
Jump straight to a file. Every size is exact to the byte.
Or browse every format at one size: 1 KB, 5 KB, 10 KB, 25 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB, 2 MB, 5 MB, 10 MB.
What to test
- CI/CD pipelines
Fixtures for build, test and deployment pipelines, with checksums for verification.
- Software development
General-purpose fixtures for building, debugging and demonstrating software that reads or writes files.
- File parser testing
Well-formed files and deliberate edge cases for testing code that reads CSV, JSON, XML, PDF and more.
Related categories
Configuration files: questions
- Why would anyone need a 1 MB configuration file?
- To find out what a tool does when configuration grows: generated Kubernetes manifests and translation files reach that size in practice.
Engineering test checklist for configuration sample files
When designing automated integration suites for configuration pipelines, QA engineers must validate three distinct layers: binary container framing, metadata extraction accuracy, and resource-bounded parsing under concurrent load.
| Verification layer | Target assertion for configuration | Recommended test fixture or tool |
|---|---|---|
| 1. Signature & MIME check | Confirm backend inspects leading magic bytes rather than trusting the client Content-Type header for configuration uploads | Magic-Byte File Inspector & Spoofed-Extension Fixtures |
| 2. Boundary byte sizes | Test minimum valid header size, 1 MB default proxy limit, 10 MB application ceiling, and 50 MB+ streaming transfers | Size Buckets (1 KB–1 GB) & In-Browser Generator |
| 3. Corrupt payload handling | Verify that truncated streams or malformed headers in configuration return HTTP 400/422 instead of crashing the worker | Broken-File QA Suite & errors-400.json |
| 4. Checksum reproducibility | Assert that round-trip storage in cloud object storage preserves the exact byte length and SHA-256 digest | SHA-256 Checksum Directory |
Common failure points in configuration ingestion workflows
- Buffering entire files in process memory: Node.js, Python, and Java services that read an entire uploaded configuration fixture into a contiguous heap buffer before checking its header signature risk Out-Of-Memory (OOM) terminations when concurrent users upload 20 MB to 100 MB files. Read the first 4,096 bytes from the stream to validate magic bytes before streaming the body to object storage.
- Character encoding and metadata sanitization: Filenames and embedded metadata fields inside configuration containers can contain precomposed (NFC) or decomposed (NFD) Unicode sequences, spaces, or missing extensions. Combine the format fixtures above with our edge-case filename samples and the A to Z Format Index to cover every parser branch.
- Cross-platform viewer and codec parity: A configuration file that opens on a developer's macOS laptop may fail inside a minimal Alpine or Debian Linux container if required shared libraries or font tables are absent. Test parser behavior inside your exact production container image during CI using the copy-ready recipes on CLI & CI Automation.