I ran 13 macOS fonts through a WOFF2 converter, and every file came out 42.6–70.8% smaller than the original while the text looked identical in the browser (research pack). So when someone asks me about WOFF2 vs TTF, I tell them to serve WOFF2 on the site and keep the TTF or OTF file as the source for future changes. A smaller file means less data on the first visit, but you'll still have to check on your own page whether the text appears sooner.
Below I show when the conversion makes sense, how to do it without losing characters, how to add WOFF2 to your CSS and how to judge the effect in DevTools. Along the way I had to throw out one result that looked too good, and I'll explain why.
WOFF2 and TTF: how the font files differ
WOFF2 is a way of packaging a font for delivery over the web. According to the W3C WOFF 2.0 specification, it takes the same data as a TTF, transforms selected tables and compresses the whole thing with Brotli. There's also a short definition in the glossary entry for WOFF2.
A browser loads both formats through @font-face, and according to caniuse every major browser supports WOFF2. A .ttf file can hold TrueType or CFF outlines, and WOFF2 packages both kinds, which comes back later in the comparison with plain Brotli.
What your visitors gain
Your visitor's browser has to download the font or read it from the cache, so a large TTF means more data to fetch the first time someone opens your page. The difference grows on a slow connection and when your page uses several weights of the same typeface.
Georgia from my test is a good example. The original was 379,588 bytes and the WOFF2 file only 110,840, so one file got 268,748 bytes (about 269 KB) lighter. That doesn't mean the page loads 70.8% faster than before. I measured file sizes, not page load times.
Your visitors will only notice the change if the font was holding back the first render of the text. If the file's already cached, or the server or a heavy script is what slows the page down, a smaller font won't change much. That's why I treat WOFF2 as a way to cut transferred data and check any performance gains separately.
Check whether your page sends fonts at all
Before you convert anything, open the page in your browser, start the developer tools and go to the Network tab with the Font filter. You'll see the formats, sizes and number of variants the browser actually downloads.
If the page already sends WOFF2, look for bigger wins before you convert the same file again. With system fonts the browser doesn't download separate font files at all, so there's nothing to shrink.
When you see several large TTF or OTF files, I'd try WOFF2. I'd also check whether the page really needs every weight and variant, because each extra file is another download. Mind the licence too, since you aren't allowed to convert and serve every font yourself.
How to convert TTF or OTF to WOFF2 without losing characters
Keep the original, then make a WOFF2 version, for example in our font converter or in a tool you already know. After converting, compare the same typeface and the same variant, otherwise you're comparing files with different contents.
Converting to WOFF2, removing unused characters and dropping hinting are three different operations, and a tool can do all of them at once and show you a single number. Our converter works that way too. When you pick a character subset, it also removes hinting before compression. You only see the effect of the format itself when you convert without a subset.
Build a subset from what the content needs, and only then look at the file size. Beyond the alphabet, a price needs the euro sign, a quotation needs typographic quotes and opening hours need an en dash. One Polish test sentence catches all of them.
„Zażółć gęślą jaźń” — 129 €; dostępność: 9–17…
I ran it through the ranges of our latin-ext preset. Every Polish letter passed, but these eight characters aren't in it.
Character | Code point | In |
|---|---|---|
| U+20AC | missing |
en dash | U+2013 | missing |
em dash | U+2014 | missing |
| U+201E, U+201D | missing |
| U+2019 | missing |
| U+2026 | missing |
combining acute accent | U+0301 | missing |
Names in forms, new CMS entries and translations will bring characters your current texts don't have. Keep broader coverage there, plus a working fallback font. A subset built for one piece of text makes sense for lettering that never changes, such as a logo or a campaign headline.
The CSS unicode-range descriptor tells the browser which characters a given file covers. According to MDN, a single character from the range is enough for the page to download the whole font. A wide declaration in CSS won't bring back a character that was removed during export.
Georgia looks identical in TTF and WOFF2
I checked Georgia in both formats in Chrome on macOS. I measured the text width in the DOM and compared canvas pixels at double pixel density.
28px „Zażółć gęślą jaźń” — 129 €; 9–17…
TTF 429.805 px WOFF2 429.805 px difference 0.000 px differing pixels: 0
16px Hamburgefonstiv 0123456789 fi fl ffi — AV To Wa
TTF 328.633 px WOFF2 328.633 px difference 0.000 px differing pixels: 0
I count pixels because text of the same width can still look different. Two strings in one browser is a narrow check, and the raw results say so plainly. Repeat it on your own fonts, especially for bold, italic and variable-font axes.
How to add WOFF2 to your CSS
Once you have the right file, point to it with a single @font-face declaration and an explicit loading strategy. The example covers one variant at weight 400, so replace the path with your own.
@font-face {
font-family: "Example Sans";
src: url("/fonts/example-regular.woff2") format("woff2");
font-style: normal;
font-weight: 400;
font-display: swap;
}
body {
font-family: "Example Sans", system-ui, sans-serif;
}
If an older environment needs WOFF, list it after WOFF2 in the same src. According to CSS Fonts Level 4, the browser uses the first source it manages to load, so wherever WOFF2 works, the WOFF file isn't downloaded.
The font-display descriptor decides what happens to the text before the font arrives. The table sums up the value descriptions on MDN.
Value | What the visitor sees |
|---|---|
| the fallback font almost immediately, swapped for the web font later |
| a short window for the swap, after which the fallback stays |
| no later swap, the visit may stay on the fallback font |
| a longer period of invisible text before the fallback appears |
With swap, the switch can change line breaks when the font metrics differ. You can match the fallback with size-adjust and metric overrides calculated for your own pair of fonts.
Only preload the variants you need on the first screen. Too many high-priority resources compete with images and other important files.
<link rel="preload" href="/fonts/example-regular.woff2" as="font" type="font/woff2" crossorigin>
Use the same URL as in your CSS and keep crossorigin even for files on the same domain, as described in MDN's preload page. Serve the file with a Content-Type: font/woff2 header. A content-hashed URL can get Cache-Control: public, max-age=31536000, immutable, but only if a changed file always gets a new URL.
How to check the effect of WOFF2 in DevTools
After the change, compare the previous font with the WOFF2 file in the same Network tab. I do it in four steps.
- Filter to fonts only and reload with the cache disabled, then check the URL, status, MIME type and transferred bytes.
- Repeat with the cache enabled and judge repeat visits separately from first visits.
- Check which font actually drew the text, because a fallback font quietly fills gaps, especially in headings, buttons, form fields and prices.
- Change one thing at a time and keep format, subset, loading strategy and preload apart until you know what each change did.
If you want to judge the speed of the whole page, measure it before and after the change under comparable conditions. My test didn't measure LCP, CLS or energy use. I explain how I read such measurements, and why lab data differs from Chrome field data, in my comparison of Lighthouse and CrUX.
WOFF2 cut 13 fonts by 42.6–70.8%
For the test I took thirteen fonts from the macOS system font folder and converted them with fontTools. I didn't subset them, remove hinting or touch variable-font axes, because I wanted to see the effect of the format alone. WOFF2 reduced them by 42.6–70.8%, with a median of 54.7%, and file size was a poor predictor of the savings.
Georgia shrank the most and Noto Sans Canadian Aboriginal the least, while the tiny Noto Sans Lycian lost almost as much as the 23 MB Arial Unicode. That's why it makes most sense to test your own fonts. The full table with bytes is at the end of the article.
I had to reject a 94.5% result
In one of the first runs I saw a reduction of 94.5% against the original file. Athelas.ttc was about 2.3 MB and the resulting WOFF2 about 127 KB, so it looked like exceptionally effective compression.
When I looked inside, it turned out the original was a collection of four variants of the typeface, while the output contained only one. I'd been comparing files with different contents, so I removed that run from the results.
Since then I check what ended up in the file as well as the number from the converter, because a big saving doesn't help if variants or characters you need disappear along the way.
WOFF2 beats plain Brotli only on TrueType outlines
WOFF2 uses Brotli, so I wanted to see whether it adds anything over simply compressing the original. I compressed each original separately with plain Brotli at the highest quality level and compared it with the WOFF2 file.
On TrueType outlines WOFF2 won by a median of 11.7%, and on CFF by just 0.5%. According to the W3C specification, WOFF2 transforms TrueType glyph data, including the glyf table, and leaves CFF data unchanged because it is already compact. For two of the four CFF fonts, plain Brotli even produced a slightly smaller file.
My only variable font, SF Pro with TrueType outlines, also landed close to zero like the CFF group, but one observation is only a lead to check. WOFF2 stays the default anyway, because it arrives compressed without any server configuration.
I ran this comparison offline, and file size isn't the same number as HTTP transfer. A server can compress a TTF response with Content-Encoding, while WOFF2 carries its compression inside the package, so always check the transferred bytes in DevTools.
What I would pick for my own site
On a new site with a custom typeface I'd start with WOFF2 straight away. On an older site with TTF or OTF I'd convert one file, check its characters and compare how it behaves in the browser. I'd keep the original as the source.
I wouldn't replace WOFF2 files that already work just for a higher percentage in a table. Sometimes you gain more by dropping unused variants, changing how fonts load or dealing with another resource entirely, and I cover images, JavaScript and server response in seven ways to speed up your website.
After switching to WOFF2, check in DevTools that the browser downloads the right file, and the Performance module in CometWeb Insight helps you assess the whole page after the change. Create a free Insight account, enter your site's address and choose the scan scope.
Frequently asked questions
Is WOFF2 better than TTF for a website?
For sending fonts to browsers, yes. WOFF2 packs the same data into a smaller file and every major browser supports it. TTF stays a perfectly good source file, so keep the original and serve a checked WOFF2 file.
Does WOFF2 make letters look worse?
WOFF2 keeps the letter shapes, and in my test the same typeface produced identical pixels in both formats. The look can only change through subsetting or hinting removal, which some converters do along the way.
Do I need to serve both TTF and WOFF2?
Modern browsers only need WOFF2. Add WOFF only if one of the environments you support requires it, and list it after WOFF2 in the same src.
Can I convert WOFF to WOFF2?
Yes, converting WOFF to WOFF2 is lossless in itself. Still, start from the original, because converting an existing subset won't bring back characters that are already gone.
Will a smaller font improve Core Web Vitals?
A smaller font cuts the number of downloaded bytes, but LCP and CLS also depend on the loading strategy and the fallback font's metrics. Check the effect on the live page, before and after the change.
Is it enough to rename a .ttf file to .woff2?
Renaming only changes the label. The file's still an uncompressed TTF inside, and a WOFF2 file only exists once a converter has encoded the font.
Full measurement results
The reduction is calculated against the original, and the last column shows how much smaller WOFF2 was than the original compressed with plain Brotli.
Font | Outlines | Original (B) | WOFF2 (B) | Reduction | Brotli (B) | WOFF2 vs Brotli |
|---|---|---|---|---|---|---|
Arial Unicode | glyf | 23,278,008 | 11,357,648 | 51.2% | 12,921,359 | +12.1% |
SF Pro (variable) | glyf | 8,333,964 | 2,757,524 | 66.9% | 2,780,939 | +0.8% |
Times New Roman | glyf | 824,920 | 361,816 | 56.1% | 403,946 | +10.4% |
Courier New | glyf | 684,624 | 310,384 | 54.7% | 351,676 | +11.7% |
Georgia | glyf | 379,588 | 110,840 | 70.8% | 130,472 | +15.0% |
Verdana | glyf | 186,188 | 78,648 | 57.8% | 90,649 | +13.2% |
Noto Sans Siddham | CFF | 94,408 | 50,092 | 46.9% | 50,562 | +0.9% |
Noto Sans Javanese | CFF | 86,944 | 38,828 | 55.3% | 38,821 | -0.0% |
Noto Sans Canadian Aboriginal | CFF | 41,468 | 23,788 | 42.6% | 23,992 | +0.9% |
Noto Sans Tifinagh | CFF | 24,956 | 13,304 | 46.7% | 13,215 | -0.7% |
Noto Sans Thaana | glyf | 18,792 | 8,200 | 56.4% | 9,088 | +9.8% |
Noto Sans Phoenician | glyf | 6,252 | 3,476 | 44.4% | 3,769 | +7.8% |
Noto Sans Lycian | glyf | 4,556 | 2,200 | 51.7% | 2,560 | +14.1% |
Sources and test data
- Research pack: method, tool versions and checksums
- File size results
- Browser check
- Measurement script
- W3C: WOFF File Format 2.0
- W3C: CSS Fonts Module Level 4, src descriptor
- MDN: unicode-range, font-display, rel=preload
- Can I use: WOFF 2.0
The pack doesn't include the fonts themselves, because they're system fonts licensed by their vendors. Before you put a font online, check that you're allowed to.