DevKits

font/*

font/woff2

File extensions: .woff2

Web Open Font Format 2 — the modern web font container.

What is font/woff2?

font/woff2 is the media type for WOFF2 — Web Open Font Format version 2, using Brotli compression to shrink web fonts by ~30% versus WOFF1. Every modern browser supports it, making it the current standard for @font-face delivery.

Typical usage

@font-face rules on modern websites.

Common gotchas

Must be served with correct CORS headers if hosted on a different origin. Preload critical fonts with <link rel="preload" as="font" crossorigin>.

HTTP header example

Response header

Content-Type: font/woff2

Reference

W3C WOFF 2

Frequently asked questions

What is the font/woff2 MIME type?

font/woff2 is the media type for WOFF2 — Web Open Font Format version 2, using Brotli compression to shrink web fonts by ~30% versus WOFF1. Every modern browser supports it, making it the current standard for @font-face delivery.

What file extension does font/woff2 use?

Files served as font/woff2 typically use the extension .woff2. The most common is .woff2.

How do I set the Content-Type for font/woff2?

Send the HTTP response header Content-Type: font/woff2. @font-face rules on modern websites.

Is font/woff2 an official MIME type?

Yes. font/woff2 is officially registered with IANA (W3C WOFF 2), so standards-conformant clients recognize it.

What are common mistakes with font/woff2?

Must be served with correct CORS headers if hosted on a different origin. Preload critical fonts with <link rel="preload" as="font" crossorigin>.

Related MIME types