Sample YAML files
Two YAML files: a nested application config with maps, lists, a null, a boolean, a float and a block string, and a list of 20 order records. Free, no sign-up. Updated 19 November 2026.
What these files are
Two YAML files: a nested application config with maps, lists, a null, a boolean, a float and a block string, and a list of 20 order records. All values are fictional.
Every file was generated by our own code, so nothing in them is copied from anyone, and we release them under CC0: use them for anything. The facts in the table were read back from each file after it was written, not typed in by hand.
About the format
YAML uses indentation with spaces, never tabs, to show structure. In YAML 1.1, which many parsers still follow, unquoted words such as yes, no, on and off are read as booleans, so a value like the country code NO can turn into false; quote strings like that. PyYAML's safe_load reads a file without running any custom tags.
These files open in text editors and any YAML library. A web server should send them with the header Content-Type: application/yaml; the same format is also saved with the extension .yml.
2 files to download
| File | Size | What it is |
|---|---|---|
| sample-config.yaml | 535 B | nested app config: maps, lists, a null, a boolean, a float and a block string top level keys: 7 |
| sample-orders.yaml | 2 KB | a list of 20 order records items: 20 |
MIME type: application/yaml. Total 2 KB.
Good for testing
- Config loaders and validators
- YAML to JSON conversion
- Checking how null and booleans are read
Check a file
python -c "import yaml; print(yaml.safe_load(open('sample-config.yaml'))['server'])"Compare the SHA-256 checksum to make sure the download is complete and unchanged (sha256sum file on Linux, shasum -a 256 file on macOS, certutil -hashfile file SHA256 on Windows):
| File | SHA-256 |
|---|---|
| sample-config.yaml | 372dc8020ac1b6f21e80fc61238498cc0a3e4e6b4933d5f3287f823335b0aff8 |
| sample-orders.yaml | d2d66964e1449b25c66ff643eda9ce933ff934ec8eca2830de10ccc185a8b9c8 |