ApplicationText-based

application/x-yaml

YAML (Application)

Reference for application/x-yaml, an alternative MIME type for YAML configuration and data serialization files.

MIME Type Detector

Drop a file to detect its MIME type — no upload, runs in your browser

📄

Drop any file here or click to choose

Expected extensions: .yaml, .yml

HTTP Content-Type Header

HTTP Header
Content-Type: application/x-yaml; charset=utf-8

Associated File Extensions

.yaml.yml

Quick Facts

MIME Typeapplication/x-yaml
CategoryApplication
TypeText-based (human-readable)
Extensions.yaml, .yml

Common Usage

YAML is a human-readable data serialization format widely used for configuration files. It powers Kubernetes manifests, Docker Compose files, CI/CD pipelines (GitHub Actions, GitLab CI), Ansible playbooks, and many application configuration systems.

Code Examples

HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.yaml" type="application/x-yaml">

<!-- Or for script/media elements -->
<script type="application/x-yaml" src="file.yaml"></script>
Node.js
// Express.js
app.get('/file', (req, res) => {
  res.type('application/x-yaml');
  res.send(data);
});

// Node.js http
res.writeHead(200, { 'Content-Type': 'application/x-yaml' });
nginx
# nginx.conf — add to types block or use default
types {
    application/x-yaml  yaml yml;
}

# Or set for a specific location
location /api/ {
    default_type application/x-yaml;
}

Related MIME Types

More Application MIME Types

Other application types in the Application family

Related Tools

Explore More MIME Types

Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.