VideoBinary
video/h264
H.264 (AVC)
Reference for video/h264, the MIME type for raw H.264/AVC video, the most widely deployed video codec in the world.
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: .h264, .264
HTTP Content-Type Header
HTTP Header
Content-Type: video/h264Associated File Extensions
.h264.264
Quick Facts
| MIME Type | video/h264 |
| Category | Video |
| Type | Binary |
| Extensions | .h264, .264 |
Common Usage
H.264 (also called AVC) is the most widely deployed video codec, used in streaming, broadcast, videoconferencing, surveillance, and Blu-ray. It provides excellent compression efficiency and is hardware-accelerated on virtually every device.
YouTube and most streaming services use H.264.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.h264" type="video/h264">
<!-- Or for script/media elements -->
<script type="video/h264" src="file.h264"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('video/h264');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'video/h264' });nginx
# nginx.conf — add to types block or use default
types {
video/h264 h264 264;
}
# Or set for a specific location
location /api/ {
default_type video/h264;
}Related MIME Types
More Video MIME Types
Other video types in the Video family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.