TTF, OTF, WOFF or WOFF2 · up to 50 MB each · files at a time: 20 · result: WOFF2

Convert only fonts you may convert: the font’s license (EULA) decides, and checking it is your responsibility. Fonts under the SIL Open Font License, like most Google Fonts, may be converted and used on websites.

Files never leave your browserHow?

This TTF to WOFF2 converter compresses TrueType fonts into WOFF2, the web font format every current browser loads first. It uses Google’s own woff2 encoder with Brotli, runs in your browser, and writes the @font-face CSS for the result.

Last updated:

How it works

  1. Choose the fonts

    Press Choose TTF files or drop up to 20 fonts; OTF, WOFF and WOFF2 are accepted as well.

  2. Convert

    Press Convert to WOFF2. Each row shows the old and new size and the font’s name.

  3. Use them on your site

    Press Download, or Download all as ZIP, then Copy CSS from the @font-face CSS box.

Features

  • Google’s encoder

    The reference woff2 library of Google with Brotli, compiled to WebAssembly; on our test fonts its files are within 1 % of the WOFF2 that fontTools writes.

  • Nothing changes but the size

    WOFF2 packs the font’s tables and transforms the glyph data reversibly; the unpacked font has the same glyphs, metrics, kerning and features.

  • Variable fonts welcome

    A variable TTF stays variable: its axes are kept, and the CSS gets a weight range such as font-weight: 200 800.

  • Ready-made CSS

    font-family from the font’s name table, font-weight from its OS/2 weight class, italic from its style, and font-display: swap.

Limits & privacy

Fonts of up to 50 MB each, 20 at a time and 200 MB together are converted in one run. Font collections (.ttc) are not supported. WOFF2 output for OTF files keeps their CFF outlines; OTF to WOFF2 is the same converter.

The WebAssembly encoder runs in a Web Worker of this tab; fonts are never uploaded. See the privacy page.

Example: the sample font, Manrope-Regular.ttf of 27 KB, becomes Manrope-Regular.woff2 of 11 KB, and the CSS box shows a rule with font-family: “Manrope” and font-weight: 400 to paste into your stylesheet.

FAQ

Why WOFF2 instead of TTF on a website?

WOFF2 files are smaller: on our test fonts 20–23 % smaller than WOFF and less than half the TTF, so text appears sooner. All current browsers support WOFF2; TTF is only a fallback for very old ones.

Is WOFF2 lossless?

Yes, WOFF2 is lossless for the glyphs, metrics and layout tables. The file may not be byte-identical after unpacking, because the glyph tables are rebuilt from their transformed form, but every glyph is the same.

Do I also need WOFF or EOT?

No for current browsers. Add WOFF only if you must support browsers from before 2016; TTF to WOFF makes it. EOT was for Internet Explorer 8 and is not made here.

Can I subset the font to make it smaller?

No, subsetting is not part of this page. Every glyph stays in the WOFF2, which keeps the font complete for any text.

How do I turn a WOFF2 back into TTF?

With WOFF2 to TTF, which unpacks it with the same library.

May I put any font on my website?

Only if its license allows web use. Fonts under the SIL Open Font License may be used; many commercial desktop licenses forbid web embedding. The Font Viewer shows the license and embedding flags.

Related tools