Download a sample YAML file of any size
Get a YAML document with a list of records that any YAML 1.2 parser loads, at the byte count you need.
1 MB = 1,000,000 B · 1 MiB = 1,048,576 B
Advanced: test an upload limit
Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 10,485,760 B. Generate and download each file to test your endpoint.
How is the sample YAML file built?
Each file starts with a comment and three top-level keys: version, generated_by and records. Records is a list of mappings with id, name, email and active fields. The generator adds records until the next one would not fit, then ends the file with a comment line of the exact remaining length, so the document still parses.
The smallest valid YAML file is 74 bytes; any byte count from there up to 2 GiB can be selected. MIME type: application/yaml.
Which YAML size do you need?
What is inside a 1 MiB YAML file?
The 1 MiB sample holds 12,827 records and ends with a 79-byte comment line. Loading it with PyYAML's C loader gives a dict whose records list has the same 12,827 entries; the comment adds nothing to the data.
When is a sample YAML file useful?
- Testing configuration uploads and CI pipelines that accept YAML.
- Measuring parse time and memory of a YAML loader on a large document.
- Checking that an API rejects a YAML body above its size limit before parsing it.
Questions about YAML test files
Is the YAML valid?
Yes. It is a single YAML 1.2 document. The padding is a comment, which parsers discard.
Are the email addresses real?
No. They use the reserved example.com domain.
Format reference and related tools
Format reference: YAML 1.2.2 specification.
Other formats in this family (Data): CSV · JSON · XLSX · XML · SQL · ODS · TSV · JSONL · LOG.
Related: CSV to JSON · JSON to YAML · Bytes to MB converter
Noticed an issue with this test file? Report an issue →