Skip to content
Private: files never leave your device

Font MIME Types List

Web fonts are downloaded like any other file, and the server labels each one with a MIME type, also called the content type. This page lists the registered type for every common font file, the outdated names that still appear in old configs, the matching CSS format names, and how nginx, Apache and IIS handle fonts out of the box.

Font MIME types: font/woff2 for WOFF2, font/woff for WOFF, font/ttf for TTF and font/otf for OTF files

The MIME type for a WOFF2 font is font/woff2, for WOFF it is font/woff, for a TrueType .ttf file font/ttf and for an OpenType .otf file font/otf. All four sit under the font top-level type that RFC 8081 created in February 2017, which replaced older names such as application/font-woff. Every entry below was checked on 23 November 2026 against the IANA font and application registries, RFC 8081, MDN and the default MIME files shipped with nginx and Apache.

Font MIME types by file ending

FileEndingMIME typeSignature at the start of the file
WOFF 2.0 web font.woff2font/woff2wOF2 (0x774F4632)
WOFF 1.0 web font.wofffont/woffwOFF (0x774F4646)
TrueType font.ttffont/ttf0x00010000
OpenType font.otffont/otfOTTO for CFF outlines, 0x00010000 for TrueType outlines
Font collection (several fonts in one file).ttcfont/collectionAs for TrueType or OpenType
Generic SFNT fontnone setfont/sfntAs for TrueType or OpenType
Embedded OpenType (old Internet Explorer format).eotapplication/vnd.ms-fontobjectNot covered by RFC 8081

The IANA font registry holds exactly six entries: collection, otf, sfnt, ttf, woff and woff2, all with RFC 8081 as the reference. EOT never moved to the font tree; it is registered as application/vnd.ms-fontobject in the application registry. RFC 8081 adds that a .ttf ending is normally used only for fonts with TrueType outlines, while .otf can hold any OpenType font, so the ending alone does not tell you which outlines a file contains.

Old font MIME types to replace

Old nameStatusUse instead
application/font-woffMarked DEPRECATED in the IANA registryfont/woff
application/font-sfntMarked DEPRECATED in the IANA registryfont/sfnt, or font/ttf and font/otf for single files
application/x-font-ttfNever registered; RFC 8081 names it as a common unregistered typefont/ttf
font/truetypeNever registered; RFC 8081 calls it nonexistent but intuitivefont/ttf
application/octet-streamGeneric type for unknown binary dataThe specific font type above

RFC 8081 says software that meets a font subtype it does not recognise should treat it as application/octet-stream, so a typo such as font/wof2 is no better than sending no font type at all. Browsers load fonts through CSS regardless of these labels in most cases, but tools that compress, cache or check files often decide what to do from the content type.

How web servers label fonts by default

ServerWhat its default MIME file mapsWhat happens to other font files
nginx (conf/mime.types)woff, woff2 and eot only.ttf and .otf get the default_type, which the shipped nginx.conf sets to application/octet-stream (the directive itself defaults to text/plain)
Apache httpd (docs/conf/mime.types)ttc, otf, ttf, woff, woff2 and eot; font/sfnt is listed but commented outCovered for every common ending
IIS 7 and laterOnly the types in its staticContent listMicrosoft says IIS will not return file types that are not added to staticContent, so an unlisted font is not served

On nginx, add the two missing lines inside the types block of mime.types: font/ttf ttf; and font/otf otf;. On IIS, add a mimeMap entry for each ending the server lacks in web.config, for example:

<configuration>
  <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".woff2" mimeType="font/woff2" />
    </staticContent>
  </system.webServer>
</configuration>

MIME type and CSS format name side by side

The format() hint in an @font-face rule does not use the MIME type. CSS Fonts Level 4 defines its own keywords:

MIME typeCSS format()Older string still accepted
font/woff2format(woff2)format("woff2"), and format("woff2-variations") for format(woff2) tech(variations)
font/woffformat(woff)format("woff"), format("woff-variations")
font/ttfformat(truetype)format("truetype"), format("truetype-variations")
font/otfformat(opentype)format("opentype"), format("opentype-variations")
font/collectionformat(collection)format("collection")
application/vnd.ms-fontobjectformat(embedded-opentype)None listed
Embedding a font in CSS A data URL takes the MIME type first, following the MDN syntax data:[<media-type>][;base64],<data>, so a small WOFF2 font becomes url(data:font/woff2;base64,...). Encode the file with Base64 Encode and Decode. Base64 makes the file larger, so keep this for small icon fonts.

Optional parameters and collections

  • outlines can be added to font/sfnt, font/ttf, font/otf and font/collection, with any of TTF, CFF and SVG, for example font/otf; outlines="CFF". RFC 8081 says it lets a program skip a download it could not render.
  • layout on font/sfnt names the text shaping support: OTL, AAT or SIL.
  • Picking one font from a collection. font/collection and font/woff2 allow a fragment that names a font by its PostScript name, such as family.ttc#Foo-Bold. Characters like ^ must be escaped, so the name Caret^stick is written #Caret%5Estick.

Related pages

See the image MIME types list, the document MIME types list and the audio and video MIME types list for other files a site serves.

Sources and dates

PageCheckedUsed for
IANA media types registry (font and application CSV exports)23 November 2026The six font types, deprecated application/font-woff and application/font-sfnt, application/vnd.ms-fontobject
RFC 8081: the font top-level media type (February 2017)23 November 2026Signatures, endings, parameters, fragments, unregistered names and the octet-stream rule
MDN: common media types and MDN: data URLs23 November 2026File endings, EOT type and data URL syntax
W3C CSS Fonts Module Level 423 November 2026format() keywords and older strings
nginx mime.types, nginx.conf and default_type23 November 2026nginx font defaults
Apache httpd mime.types23 November 2026Apache font defaults
Microsoft Learn: IIS mimeMap23 November 2026IIS behaviour and the web.config format

Frequently asked questions

What is the MIME type for WOFF2?

font/woff2, registered with IANA through RFC 8081. Files start with the signature wOF2, and the matching CSS hint is format(woff2).

Is application/font-woff still correct?

No. The IANA registry marks application/font-woff as deprecated in favour of font/woff. It still works in many places, but new configs should send font/woff.

What is the MIME type for a TTF file?

font/ttf. Older configs often use application/x-font-ttf or font/truetype, but neither was ever registered.

What is the MIME type for an OTF file?

font/otf. The CSS format() keyword for the same file is opentype.

What is the MIME type for EOT fonts?

application/vnd.ms-fontobject. EOT is registered in the application tree, not under font, and its CSS format() keyword is embedded-opentype.

Why does nginx serve my TTF font as application/octet-stream?

The mime.types file shipped with nginx maps woff, woff2 and eot but not ttf or otf, so those files get the default_type, which the shipped nginx.conf sets to application/octet-stream. Add font/ttf ttf; and font/otf otf; to fix it.