file in abyss
Back to formats

Data

YAML YAML Ain’t Markup Language

YAML Ain’t Markup Language is a data format commonly identified by .yaml, .yml. Use the listed signatures, MIME types, and structure notes to validate files beyond the extension.

Extensions .yaml, .yml
MIME application/yaml, text/yaml

Magic numbers

Analyze your file
offset 0 YAML Ain’t Markup Language leading signature
74 69 74 6C 65 3A
title:

Structure

  1. Documents
  2. Mappings
  3. Sequences
  4. Scalars

Caveats

  • Do not trust the extension alone. Check the MIME type, the first bytes such as 74 69 74 6C 65 3A, and format-specific structure when possible.
  • Container formats and damaged files can share the same opening bytes, so deeper validation may be required for production upload, preview, or conversion flows.

Detection example

SIGNATURE = bytes.fromhex("7469746c653a")
OFFSET = 0

def is_yaml(path: str) -> bool:
    with open(path, "rb") as f:
        f.seek(OFFSET)
        head = f.read(len(SIGNATURE))
    return head == SIGNATURE

Practical usage

Use cases

YAML Ain’t Markup Language is used for data exchange, imports, exports, parser testing, and validation workflows. Encoding, delimiters, versions, and container structure often change implementation behavior.

Common detection mistakes

  • The .yaml / .yml extension alone does not prove the file contents. Upload and conversion flows should combine extension, MIME type, leading bytes, and format-specific structure checks.
  • YAML Ain’t Markup Language can start with signatures such as 74 69 74 6C 65 3A, but related containers and damaged files may require additional validation.

Security notes

Untrusted input is not safe just because the format was detected. Account for parser exceptions, large files, unexpected encodings, and external references.

Using samples

11 samples help test leading-byte detection, parser errors, upload limits, and download behavior.

Sample files

11 / 11 files
Sample Traits Size Source / license / SHA-256
Data

Blue Sky YAML

Blue Sky YAML is a YAML Ain’t Markup Language sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

01-blue-sky.yaml
Type Sample
Small file
185 B
SHA-256 0f6ffd57cd39429ef5ffa4f6991d0538f24f1add9569999562ce04b942d2d376
Download
Data

Flower Garden YAML

Flower Garden YAML is a YAML Ain’t Markup Language sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

02-flower-garden.yaml
Type Sample
Small file
257 B
SHA-256 dd741065e0186333a677b530975c934fd052fe7d672bb53746c5e86a52d8bea3
Download
Data

Navy Blue Sky YAML

Navy Blue Sky YAML is a YAML Ain’t Markup Language sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

03-navy-blue-sky.yaml
Type Sample
Small file
291 B
SHA-256 98431cf0f854d07f47f9d99219d28e4dce87b753b35b78a9aaf750c972b782c5
Download
Data

Nature of the Sky YAML

Nature of the Sky YAML is a YAML Ain’t Markup Language sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

04-nature-sky.yaml
Type Sample
Small file
341 B
SHA-256 6cfd66f8a3f6391bce8291452f851ccff9b359b9436e7ceeb82855f96f488b7f
Download
Data

Sky Landscape YAML

Sky Landscape YAML is a YAML Ain’t Markup Language sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

05-sky-landscape.yaml
Type Sample
Small file
384 B
SHA-256 59ffd56784b0c6233a867ba538b25dd741737a7372176accca405e50e9c6ca81
Download
Data

Starry Sky YAML

Starry Sky YAML is a YAML Ain’t Markup Language sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

06-starry-sky.yaml
Type Sample
Small file
391 B
SHA-256 c4c03b904441a9b77d20f23eb15af66255c0bb17cc2bf1bdb327a7b088a73381
Download
Data

Blue Night Sky YAML

Blue Night Sky YAML is a YAML Ain’t Markup Language sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

07-blue-night-sky.yaml
Type Sample
Small file
452 B
SHA-256 e4cc3804885f18f7b696fa22d7232170e584f10a1ca199aefbaafed4df688b00
Download
Data

Hibiscus Flower YAML

Hibiscus Flower YAML is a YAML Ain’t Markup Language sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

08-hibiscus-flower.yaml
Type Sample
Small file
530 B
SHA-256 722fb2f424628791e265901aff3fd1ca55e27e721d0c138d5e5752b457735d21
Download
Data

Arctic Sky YAML

Arctic Sky YAML is a YAML Ain’t Markup Language sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

09-arctic-sky.yaml
Type Sample
Small file
510 B
SHA-256 fd0d557c83c5914bfe69a6c76d9f7f1a52e7ebc03b5a19e2afc53cb8f3f51810
Download
Data

Sunset Rays YAML

Sunset Rays YAML is a YAML Ain’t Markup Language sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

10-sunset-rays.yaml
Type Sample
Small file
563 B
SHA-256 4efad6d8a06c0965b158bb5e9fac03d45ec2fe4eeb9c1c2b5c62767ced5a26dc
Download
Data

NASA Blue Marble YAML

NASA Blue Marble YAML is a YAML Ain’t Markup Language sample based on NASA Image and Video Library. It can be used to test downloads, parsers, previews, and file type detection.

nasa-blue-marble-2012-east.yaml
Type Sample
Small file
821 B
SHA-256 8e37e194ab4ff8cee72db6ad2c6fe0e35ad70fd5e3bf7c97067eca2e0b8b07e3
Download

Frequently asked questions

What is the magic number (file signature) of YAML Ain’t Markup Language?

YAML Ain’t Markup Language files begin with the byte signature 74 69 74 6C 65 3A ("title:"). Detect the format by reading these leading bytes rather than trusting the file extension alone.

What is the MIME type of YAML Ain’t Markup Language?

The MIME type for YAML Ain’t Markup Language is application/yaml, text/yaml.

What file extension does YAML Ain’t Markup Language use?

YAML Ain’t Markup Language files use the .yaml, .yml extension. The extension is a convention only and does not guarantee the file contents, so combine it with signature and structure checks.

Related formats