ApplicationBinary
application/x-bzip2
Bzip2
Reference for application/x-bzip2, the MIME type for bzip2-compressed data offering higher compression than gzip.
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: .bz2
HTTP Content-Type Header
HTTP Header
Content-Type: application/x-bzip2Associated File Extensions
.bz2
Quick Facts
| MIME Type | application/x-bzip2 |
| Category | Application |
| Type | Binary |
| Extensions | .bz2 |
Common Usage
Bzip2 provides better compression ratios than gzip at the cost of slower speed. It is commonly used for compressing tar archives (.tar.bz2) on Linux systems, distributing source code, and archiving data where compression ratio matters more than speed.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.bz2" type="application/x-bzip2">
<!-- Or for script/media elements -->
<script type="application/x-bzip2" src="file.bz2"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('application/x-bzip2');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'application/x-bzip2' });nginx
# nginx.conf — add to types block or use default
types {
application/x-bzip2 bz2;
}
# Or set for a specific location
location /api/ {
default_type application/x-bzip2;
}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.