Web Font Containers
Web Open Font Format 2.0
WOFF2 is the W3C Recommendation for web fonts, combining transformed glyf/loca tables with Google Brotli entropy compression for 65%+ of global web font requests.
Strengths
- 30% smaller on average than WOFF 1.0 and 40%–60% smaller than uncompressed TTF/OTF
- Losslessly preserves TrueType quadratic and OpenType CFF curves plus GSUB/GPOS kerning and ligatures
- Supported natively by every modern desktop and mobile browser (Chrome, Safari, Firefox, Edge)
Trade-offs
- Not supported by Internet Explorer 11 or very old legacy embedded WebViews
- Desktop operating systems do not natively install .woff2 files into system font managers without decoding back to TTF/OTF
- Brotli re-encoding takes slightly more CPU than zlib, though WebAssembly handles Latin fonts in milliseconds
Convert & optimize WOFF2 locally
Related engineering guides
All 18 guidesWOFF2 vs TTF vs OTF: Which Font Format Should You Ship in 2026?
Compare WOFF2, WOFF 1.0, TTF, and OTF compression, Bézier curves, and browser support—plus why shipping raw TTF costs 2x more font bandwidth.
How to Shrink 15 MB CJK Fonts to 60 KB via Subsetting & unicode-range Splitting
Cut 15–25 MB Chinese, Japanese, and Korean fonts down to 58 KB subsets or auto-split into CSS unicode-range WOFF2 chunks locally without 5 MB caps.
Zero Layout Shift Web Fonts: Calculating size-adjust & ascent-override
Eliminate Cumulative Layout Shift (CLS) on web font swap using exact OS/2 vs hhea formulas for size-adjust, ascent-override, and descent-override.
Self-Hosting Google Fonts for GDPR Compliance & Zero Third-Party Requests
Eliminate external fonts.googleapis.com requests for European GDPR compliance by packing local WOFF2 fonts, @font-face CSS, and CLS fallbacks.
Variable Fonts: Static Weight Instancing vs. Trimming Axis Ranges
Use HarfBuzz WASM in your browser to pin Variable Font axes (wght/wdth) into lightweight static weights or trim axis spans without Python fonttools.
Production @font-face CSS: Preload, crossorigin, and font-display Strategy
Write bulletproof @font-face CSS with font-display: swap vs optional, crossorigin preload hints, and metric-matched fallbacks for fast LCP.
- Removing Font Hinting (fpgm/prep/cvt): Saving 8–15% Bytes on Retina ScreensStrip legacy TrueType bytecode hinting tables (fpgm, prep, cvt) with HarfBuzz WASM to save 8%–15% WOFF2 bytes for macOS, iOS, and modern HiDPI screens.
- Build a Custom SVG-to-WOFF2 IconFont in Your Browser Without Node CLIBundle monochrome SVG UI icons into a lightweight WOFF2 + TTF IconFont with CSS classes and demo.html locally — zero Node tools or cloud uploads.
- Optimizing & Subsetting Fonts for Kindle, Kobo & EPUB 3 E-BooksShrink bloated 15 MB CJK or literary fonts into compact TTF/WOFF files for Kindle and EPUB 3 packages without breaking punctuation or italics.
- Commercial Font EULAs & Zero-Upload Browser WASM: Keeping Paid Typefaces PrivateWhy uploading paid commercial .otf/.ttf fonts to cloud converters risks EULA violations—and how browser WASM keeps files 100% on your machine.
- Converting WOFF2 & WOFF Back to TTF/OTF for Desktop, Figma & CanvaDecode .woff2 and .woff web fonts back into installable .ttf or .otf desktop files for macOS, Windows, Figma, and Canva locally without uploads.
- Fixing Missing Glyphs & Tofu Boxes: cmap Coverage and CSS FallbacksDebug missing glyph tofu boxes (.notdef), audit cmap table coverage before subsetting, keep punctuation intact, and build safe CSS fallback stacks.
- Renaming Font Families: OpenType name Table IDs & Checksum HygieneEdit OpenType nameID 1, 2, 4, 6, 16, and 17 metadata locally to fix Windows and macOS weight conflicts and update head checksums cleanly.
- Converting Font Text to SVG Paths for Logos, OG Graphics & IconFontsConvert headlines, wordmarks, and glyphs into crisp SVG path outlines in your browser—no font installation needed for Figma, Canva, or IconFonts.
- Base64 Inline WOFF2 vs. External Font Files: When Data URIs Make SenseWeigh Base64 Data URI fonts (+33% overhead and CSSOM blocking) against external WOFF2 files—and learn when inline subsetting actually wins.
- Migrating Legacy EOT and WOFF 1.0 Web Fonts to Modern Brotli WOFF2Rescue legacy IE .eot and zlib .woff web fonts into modern Brotli .woff2, clean up obsolete #iefix @font-face CSS, and batch-upgrade stacks.
WOFF2 frequently asked questions
Does converting TTF or OTF to WOFF2 lose any glyph quality or kerning?
No. WOFF2 is a lossless font container that transforms glyph tables for better Brotli compression and reconstructs bit-identical SFNT tables on decode.
How much bandwidth does WOFF2 save compared to WOFF 1.0 and TTF?
According to W3C benchmarks and HTTP Archive Web Almanac data, WOFF2 averages 30% smaller than WOFF 1.0 and 45%–55% smaller than raw TTF/OTF.
Do I still need WOFF 1.0 or EOT fallbacks in 2026?
For public websites, WOFF2 alone covers over 97% of browsers. Only legacy IE11 intranets or older e-readers require WOFF 1.0 or TTF.