Your file is not uploaded: the conversion runs in your browser, and your file stays on your device.

WOFF2 is the font format all modern browsers support for @font-face. For fonts with CFF (PostScript) outlines, the W3C’s evaluation found smaller savings than for TrueType fonts: a median of about 13.5 percent compared with WOFF 1.0. The conversion uses Google’s woff2 library, running right in your browser.

How it works

  1. Drop your .otf font onto the box above or click to pick it; several fonts at once are fine.
  2. Click Convert. Your browser loads Google’s woff2 library and creates the WOFF2 on your device, with no upload.
  3. 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?

AspectResult
ProcessingIn your browser: Google’s woff2 library compiled to WebAssembly, running in a background thread (web worker). Your font never leaves your device.
OutlinesStay as they are: WOFF2 keeps CFF and CFF2 data unchanged and only compresses it. If the OTF contains TrueType outlines, WOFF2 transforms their glyph tables losslessly.
CheckBefore saving, the result is unpacked again and compared with your OTF: every glyph with all its points, curves and hinting instructions, all other tables byte by byte. If anything differs, nothing is saved.
File sizeIn our test with Source Code Pro: 131 KB as OTF, 76 KB as WOFF2 (−42%), 91.5 KB as WOFF 1.0.
Digital signatureA DSIG signature in the OTF is dropped because the W3C requires WOFF2 encoders to remove it. In the head table, only the checksum and the WOFF2 flag change.
LicenseThe 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.

Limitations

  • Only .otf files are accepted; font collections (.otc, .ttc) can’t be converted.
  • There are no options: no subsetting, no CSS output. Each OTF 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

Does WOFF2 save as much for OTF fonts as for TTF?

Usually less. In the W3C’s evaluation, WOFF2 saved a median of about 13.5% over WOFF 1.0 for CFF fonts and roughly a quarter for TrueType fonts. In our test, Source Code Pro came to 76 KB as WOFF2 and 91.5 KB as WOFF.

Do OpenType features such as ligatures survive?

Yes. WOFF2 compresses the font’s tables without changing what they do; in our test, GSUB, GPOS, and the CFF outlines came through byte-identical.

Are the CFF outlines converted?

No. WOFF2 only transforms the TrueType glyph tables glyf and loca; CFF and CFF2 data is just compressed with Brotli.

Sources

  1. W3C: WOFF File Format 2.0 (Recommendation)
  2. W3C: WOFF 2.0 Evaluation Report
  3. Google: woff2 (source code, MIT license)
  4. MDN: Web fonts
  5. SIL: OFL-FAQ