Convert TTF to WOFF2
Turn TrueType fonts into WOFF2 web fonts for your own site – the conversion runs in your browser, and your file stays on your device.
- Free
- No sign-up
- No ads
WOFF2 is the W3C web font format that all modern browsers support, and it compresses font data with Brotli. In the W3C’s evaluation, WOFF2 files for TrueType fonts were a median of roughly a quarter smaller than WOFF 1.0. The conversion uses Google’s woff2 library, compiled to WebAssembly and running right in your browser.
How it works
- Drop your .ttf font onto the box above or click to pick it; several fonts at once are fine.
- Click Convert. Your browser loads Google’s woff2 library and creates the WOFF2 on your device, with no upload.
- The .woff2 file downloads automatically under the same name. Put it on your web server and reference it in an @font-face rule.
What happens to your file?
| Aspect | Result |
|---|---|
| Processing | In your browser: Google’s woff2 library compiled to WebAssembly, running in a background thread (web worker). Your font never leaves your device. |
| Compression | WOFF2 compresses the font data with Brotli at the highest level and transforms the glyf and loca tables, as the W3C specification defines. |
| Check | Before saving, the result is unpacked again and compared with your TTF: every glyph with all its points, curves and hinting instructions, all other tables byte by byte. If anything differs, nothing is saved. |
| File size | In our test, Inter Regular went from 407 KB as TTF to 138 KB as WOFF2, a 66% reduction; as WOFF 1.0 it would be 198 KB. Against WOFF 1.0, the W3C evaluation reports median savings of about 24 to 27% for TrueType fonts. |
| Hinting | Kept. TrueType instructions travel with the glyph data, and the fpgm, prep, and cvt tables were byte-identical in our test. |
| OpenType features | Ligatures, kerning, character mapping, names, and embedding permissions (GSUB, GPOS, cmap, name, OS/2) came through byte-identical. Only the head table gets a new checksum and the WOFF2 flag; the encoder removes a digital signature (DSIG), as the specification requires. |
| License | The conversion doesn’t change it. Per OFL-FAQ 2.2.1, a WOFF2 version of an Open Font License font isn’t a modification if only compression changes the data and WOFF metadata is either omitted or unaltered; the converter adds no WOFF metadata. |
When to convert, and when not to
Worth it
- You self-host a font and want to load it with @font-face; MDN notes that all modern browsers support WOFF2.
- You only have a TTF of an openly licensed font and want the much smaller web version for faster pages.
Not needed, or better alternatives
- For desktop apps such as Word, Photoshop, or InDesign, install the TTF itself; WOFF2 is a format for browsers.
- The font came with Windows. Microsoft’s font FAQ says you may not convert Windows fonts to WOFF or WOFF2 or self-host them on a web server.
- You need subsetting or a ready-made CSS kit, which this converter doesn’t offer. For OpenType files there’s OTF to WOFF2, and WOFF2 to TTF goes the other way.
Limitations
- Only .ttf files are accepted; font collections (.ttc) can’t be converted.
- There are no options: no subsetting, no style selection, no CSS output. Each TTF becomes exactly one WOFF2.
- Fonts up to 30 MB. Large fonts take time: in our test, a 16 MB font with Japanese characters took about a minute.
- The first conversion loads Google’s woff2 library (about 0.4 MB compressed).
- Multiple fonts are converted one after another; if one fails, the rest of the queue stops there.
Frequently asked questions
How do I use the WOFF2 file with @font-face?
Upload it to your site and point to it in your CSS, for example: @font-face { font-family: "My Font"; src: url("my-font.woff2") format("woff2"); font-display: swap; }. With font-display: swap, the browser shows text in a fallback font until the web font has loaded.
Do I still need WOFF or TTF for older browsers?
Usually not. MDN recommends serving as few font files as possible and adding WOFF only if you must support very old browsers; in that case, list WOFF2 first in the src descriptor.
Can I put any font on my website as WOFF2?
Only if its license allows it. The OFL-FAQ explicitly permits loading Open Font License fonts through @font-face (entry 2.1). For commercial fonts, check whether your license covers web use.
Does shrinking the font lose anything?
No. Per the W3C spec, the rebuilt font keeps the original’s full functionality even if it isn’t a bitwise match. Before saving, the converter unpacks every result again and compares it with your TTF, glyph by glyph and table by table; if anything differs, nothing is saved.