Sample YAML files
Free YAML test files from 5 KB to 1 GB. Pick a size and download, or type any size you need.
5 KB YAML
24 records
10 KB YAML
48 records
100 KB YAML
481 records
500 KB YAML
2,395 records
1 MB YAML
4,779 records
5 MB YAML
Made on your device
10 MB YAML
Made on your device
25 MB YAML
Made on your device
50 MB YAML
Made on your device · saved in pieces
100 MB YAML
Made on your device · saved in pieces
500 MB YAML
Made on your device · saved in pieces
1 GB YAML
Made on your device · saved in pieces
Free for any use, including commercial. Made by this site, with no third-party content and no signup.
What is inside
- A # comment on line one, then a top-level key, employees, holding a list
- One list item per employee with 9 keys: 48 in the 10 KB file, 4,779 in the 1 MB file, 118,018 in the 25 MB file
- Every string in double quotes, including the started date, so it stays text
- Numbers for id and salary, and true or false for active
- Two-space indentation, no tabs
- Exact to the byte, filled with a # comment line at the end
Try it with these tools
They run in your browser. The file you downloaded stays on your device.
- YAML Viewer Open and read a YAML file in your browser.
- YAML Formatter & Validator Tidy YAML and check it parses.
- YAML to JSON Convert YAML to JSON, or JSON back to YAML.
- YAML to CSV Turn a YAML list into spreadsheet rows.
- YAML to Excel Turn YAML records into a spreadsheet.
- Compare YAML Diff two YAML files line by line.
- JSON to YAML Convert between JSON and YAML.
About YAML files
YAML is a text format for data that uses indentation instead of brackets. A dash starts a list item, a colon separates a key from its value, and a # starts a comment. It holds the same kinds of data as JSON, and YAML 1.2 is written so that valid JSON is also valid YAML.
Most people meet YAML in configuration: Docker Compose, Kubernetes, GitHub Actions, Ansible and many app settings files. Large YAML files are less common, which is why a big one is a good test of how a tool copes.
The problem that catches almost everyone is values that look like something else. Unquoted, a word like no or a version like 1.10 can be read as a boolean or a number, depending on the parser. Quoting strings, as these files do, removes the guesswork.
Sources: YAML 1.2.2 specification (yaml.org) · YAML format description (Library of Congress)
Questions
Why is the started date in quotes?
Some YAML parsers turn an unquoted 2017-06-20 into a date object, and others keep it as text. Quoting it means every parser gives back the same string.
What is the row of dashes after # at the end of the file?
Padding. It is a comment line that brings the file to exactly 10,000, 100,000 or up to 25,000,000 bytes. Every YAML parser skips comments, so the data is the same.
Is the 25 MB YAML file too big for my tool?
It may be, and that is a useful thing to find out. Tools that build the whole document in memory, or that highlight every line, often slow down long before 25 MB. Start with the 1 MB file and go up.
Also searched as: sample yaml file download, dummy yaml file, test yaml file, example yaml file, 1 MB yaml file, 10 MB yaml file, 100 MB yaml file, 1 GB yaml file, free yaml for testing.
For developers: exact bytes and SHA-256
Sizes are decimal (1 MB = 1,000,000 bytes). The hosted files never change between builds, so these checksums stay valid.
| File | Bytes | SHA-256 |
|---|---|---|
| sample-5kb.yaml | 5,000 bytes | 6801e54a553bd7169de1544d36466dc33917559c466d8e63eedc8ce4ca728bdd |
| sample-10kb.yaml | 10,000 bytes | 4965d5d77eade8a71cfa1b243557f41e5c0e3593b1c26856607ca3ba242daa42 |
| sample-100kb.yaml | 100,000 bytes | 998cb72772f6cd49a4664a4163014fdf28aa5cadebf22082919092711fae87c4 |
| sample-500kb.yaml | 500,000 bytes | 988ba19387f527ca6f2b380b24283421bac44cb442d670fcc3aedef7c96d816c |
| sample-1mb.yaml | 1,000,000 bytes | acc39cb35e48f19e7b7eb857148b2c16d4450c4cf262f12c753a63806d90952a |