FontBinary
font/ttf
TrueType Font
Reference for font/ttf, the MIME type for TrueType font files widely supported across all operating systems.
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: .ttf
HTTP Content-Type Header
HTTP Header
Content-Type: font/ttfAssociated File Extensions
.ttf
Quick Facts
| MIME Type | font/ttf |
| Category | Font |
| Type | Binary |
| Extensions | .ttf |
Common Usage
TrueType is the most widely deployed font format, supported by all operating systems and browsers. TTF fonts use quadratic Bézier curves for outlines and include hinting instructions for screen rendering.
Used in @font-face CSS rules, desktop applications, and document embedding.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.ttf" type="font/ttf">
<!-- Or for script/media elements -->
<script type="font/ttf" src="file.ttf"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('font/ttf');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'font/ttf' });nginx
# nginx.conf — add to types block or use default
types {
font/ttf ttf;
}
# Or set for a specific location
location /api/ {
default_type font/ttf;
}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.