FontBinary
font/woff2
WOFF2
Reference for font/woff2, the second generation Web Open Font Format with superior Brotli-based compression.
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: .woff2
HTTP Content-Type Header
HTTP Header
Content-Type: font/woff2Associated File Extensions
.woff2
Quick Facts
| MIME Type | font/woff2 |
| Category | Font |
| Type | Binary |
| Extensions | .woff2 |
Common Usage
WOFF2 uses Brotli compression to achieve 30% better compression than WOFF. It is the recommended format for web fonts, providing the smallest file sizes and fastest loading times.
Google Fonts serves WOFF2 as the primary format for all web font requests.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.woff2" type="font/woff2">
<!-- Or for script/media elements -->
<script type="font/woff2" src="file.woff2"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('font/woff2');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'font/woff2' });nginx
# nginx.conf — add to types block or use default
types {
font/woff2 woff2;
}
# Or set for a specific location
location /api/ {
default_type font/woff2;
}Related MIME Types
More Font MIME Types
Other font types in the Font family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.