.eot MIME type
Embedded OpenType fontfonts
application/vnd.ms-fontobjectA web font format that only Internet Explorer ever supported.
| MIME type | application/vnd.ms-fontobject |
|---|---|
| Extensions | .eot |
| Content-Type | application/vnd.ms-fontobject |
| Compress in transit? | Yes — enable gzip or Brotli |
| File signature | 4C 50 (LP) at offset 34 |
Good to know
- With Internet Explorer gone, drop
.eotfrom your@font-facerules — WOFF2 works in every current browser. - Old "bulletproof"
@font-facesnippets put?#iefixafter the .eot URL. That hack can go too.
Serve .eot files with the right type
The response header to send:
Content-Type: application/vnd.ms-fontobject
Most servers pick the type from the file extension. If yours sends the wrong one, map it explicitly:
nginx (inside the types block in mime.types)
application/vnd.ms-fontobject eot;
Apache (.htaccess or server config)
AddType application/vnd.ms-fontobject .eot
Express
res.set("Content-Type", "application/vnd.ms-fontobject");Python
import mimetypes
mimetypes.add_type("application/vnd.ms-fontobject", ".eot")HTML file input
<input type="file" accept=".eot,application/vnd.ms-fontobject">
Check it
See what a server sends for a file, and what type a local file really is by its contents:
curl -sI https://example.com/file.eot | grep -i '^content-type:' file --mime-type file.eot
Frequently asked questions
What is the MIME type for .eot files?
application/vnd.ms-fontobject.
What Content-Type header should a .eot file be served with?
Content-Type: application/vnd.ms-fontobject. It compresses well, so let the server apply gzip or Brotli.
How can I tell if a file is really a .eot?
Check its bytes rather than the extension: EOT files contain 4C 50 (LP) at byte offset 34. On the command line, file --mime-type name.eot does this for you.
Related types
Headers that go with it: Content-Type · Content-Disposition · X-Content-Type-Options