Free YAML sample, test and dummy files

Human-friendly data serialisation that relies on indentation. The format of most infrastructure configuration. Download valid YAML test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.

Extension
.yaml
MIME type
application/yaml
Kind
Text
Category
Configuration

Create a YAML file of any size

Choose any size from 150 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.

YAML files by size

Every file below is a valid YAML Ain't Markup Language file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.

YAML sample files by size
FileSizeContentsDownload
1 KB YAML samplesample-yaml-1kb.yaml 1 KB1,024 bytes Records: 2 Download YAML
5 KB YAML samplesample-yaml-5kb.yaml 5 KB5,120 bytes Records: 19 Download YAML
10 KB YAML samplesample-yaml-10kb.yaml 10 KB10,240 bytes Records: 41 Download YAML
25 KB YAML samplesample-yaml-25kb.yaml 25 KB25,600 bytes Records: 105 Download YAML
50 KB YAML samplesample-yaml-50kb.yaml 50 KB51,200 bytes Records: 212 Download YAML
100 KB YAML samplesample-yaml-100kb.yaml 100 KB102,400 bytes Records: 425 Download YAML
200 KB YAML samplesample-yaml-200kb.yaml 200 KB204,800 bytes Records: 852 Download YAML
500 KB YAML samplesample-yaml-500kb.yaml 500 KB512,000 bytes Records: 2,121 Download YAML
1 MB YAML samplesample-yaml-1mb.yaml 1 MB1,048,576 bytes Records: 4,336 Download YAML
2 MB YAML samplesample-yaml-2mb.yaml 2 MB2,097,152 bytes Records: 8,665 Download YAML
3 MB YAML samplesample-yaml-3mb.yaml 3 MB3,145,728 bytes Records: 12,968 Download YAML
5 MB YAML samplesample-yaml-5mb.yaml 5 MB5,242,880 bytes Records: 21,555 Download YAML
10 MB YAML samplesample-yaml-10mb.yaml 10 MB10,485,760 bytes Records: 43,023 Download YAML
15 MB YAML samplesample-yaml-15mb.yaml 15 MB15,728,640 bytes Records: 64,491 Download YAML
20 MB YAML samplesample-yaml-20mb.yaml 20 MB20,971,520 bytes Records: 85,957 Download YAML
25 MB YAML samplesample-yaml-25mb.yaml 25 MB26,214,400 bytes Records: 107,364 Download YAML
30 MB YAML samplesample-yaml-30mb.yaml 30 MB31,457,280 bytes Records: 128,655 Download YAML
50 MB YAML samplesample-yaml-50mb.yaml 50 MB52,428,800 bytes Records: 213,826 Download YAML
100 MB YAML samplesample-yaml-100mb.yaml 100 MB104,857,600 bytes Records: 426,757 Download YAML

More YAML samples

Hand-designed files with realistic content or a specific edge case.

Curated YAML sample files
FileSizeContentsDownload
Sample Docker Compose YAMLsample-docker-compose.yaml 744 B744 bytes Features: Anchors and aliases, sequences, nested mappings, quoted strings, comments Download YAML

What is a YAML file?

YAML expresses mappings, sequences and scalar values using indentation rather than brackets, which makes it pleasant to write by hand. Kubernetes, Docker Compose, GitHub Actions and Ansible are all configured with it.

YAML is a superset of JSON and has a great deal of syntax, including anchors for reusing values and several ways of writing multi-line strings.

How to recognise a YAML file

YAML files have no file signature, the magic bytes that most binary formats begin with.

No signature bytes. YAML files are identified by parsing their content.

Extension.yaml
MIME typeapplication/yaml
SpecificationYAML 1.2.2
Extensions.yaml and .yml
IndentationSpaces only; tabs are not allowed
FeaturesAnchors, aliases, tags, multiple documents per file

What to test for

These are the behaviours that most often go wrong when software handles YAML files.

Strengths of YAML

  • Easy for people to read and write, with support for comments.
  • Anchors and aliases avoid repeating shared configuration.

Limitations of YAML

  • Significant indentation makes small mistakes change the meaning silently.
  • Implicit typing turns some plain values into booleans or numbers unexpectedly.

Typical uses of YAML test files

  • Testing configuration loaders and linters
  • Checking CI pipeline tooling
  • Testing converters between YAML and JSON

Software that opens YAML

  • Kubernetes, Docker Compose, Ansible, GitHub Actions
  • PyYAML, js-yaml, SnakeYAML and yq

Specifications

Related

YAML sample files: questions

Are the samples a single YAML document?
Yes. Each file is one document with a top-level mapping and a sequence of records.
What is the MIME type of a YAML file?
The MIME type is application/yaml. The file extension is .yaml.
Is a sample YAML file the same as a dummy or example YAML file?
Yes. Sample, test, dummy and example YAML files are different names for the same thing: a YAML file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy YAML file.