ApplicationBinary
application/gzip
Gzip
Reference for application/gzip, the MIME type for gzip-compressed data commonly used in HTTP compression and Linux archives.
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: .gz, .gzip
HTTP Content-Type Header
HTTP Header
Content-Type: application/gzipAssociated File Extensions
.gz.gzip
Quick Facts
| MIME Type | application/gzip |
| Category | Application |
| Type | Binary |
| Extensions | .gz, .gzip |
Common Usage
Gzip is the standard compression for HTTP content encoding, making web pages load faster. It is also used for compressing log files, creating .tar.gz archives on Unix systems, and serving compressed static assets from CDNs and web servers.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.gz" type="application/gzip">
<!-- Or for script/media elements -->
<script type="application/gzip" src="file.gz"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('application/gzip');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'application/gzip' });nginx
# nginx.conf — add to types block or use default
types {
application/gzip gz gzip;
}
# Or set for a specific location
location /api/ {
default_type application/gzip;
}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.