.yaml YAML document
Text & source code
| MIME type | application/yaml |
|---|---|
| Description | YAML document |
| Acronym | YAML – YAML Ain't Markup Language |
| Category | Text & source code |
| Signature (magic bytes) | 25 59 41 4D 4C (%YAML) |
| Based on | text/plain |
| Other extensions | .yml |
Frequently asked questions
What is a .yaml file?
A .yaml file is a “YAML document” (MIME type application/yaml). YAML stands for YAML Ain't Markup Language.
How do I open a .yaml file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .yaml file?
By the bytes at the start of the file, the signature (magic bytes): 25 59 41 4D 4C (%YAML). On Linux and macOS, file --mime-type example.yaml checks the real type regardless of the extension.
Which format is .yaml based on?
Technically a .yaml file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .yaml?
The MIME type is application/yaml. In the Apache web server: AddType application/yaml .yaml; in nginx: types { application/yaml yaml; }.