Feedback

TTF to WOFF2

Convert TTF to WOFF2 in a few seconds: drop one or more TrueType files, the tool compresses them with Google's woff2 encoder right in your browser and writes the matching @font-face code. Your font files never leave your device.

Drop font files here

TTF, OTF, WOFF or WOFF2, several at once if you like.

Fonts are converted only in your browser and never uploaded.

Output

A subset makes the file much smaller. The browser then shows characters outside the range in a fallback font.

Results

    From the Solo plan

    A new typeface or one more style is added quickly. A performance budget per URL in a plan sets a limit for font weight and emails you as soon as a page exceeds it.

    TTF to WOFF2: the same glyphs, compressed with Brotli

    A TTF file stores its tables uncompressed. WOFF2 keeps exactly these tables, transforms the TrueType outlines (glyf and loca tables) into a more compact form and compresses everything with Brotli. Measured with this tool on 27.11.2026: Roboto Regular (version 2.001, Apache 2.0) went from 162,876 bytes as TTF to 61,736 bytes as WOFF2, 62 percent less, with identical glyphs.

    TTF to WOFF2 with a Latin subset: 87 percent smaller than the TTF

    Many TTF files contain Cyrillic, Greek or Vietnamese characters that an English site never shows. With "Latin" as character set the same Roboto file ends up at 21,144 bytes, 87 percent less than the TTF; with Latin and Latin Extended at 29,208 bytes. The subset keeps all OpenType features, and the @font-face code gets the matching unicode-range.

    Replace TTF with WOFF2 in the @font-face rule

    After the conversion, point the src of your @font-face rule to the WOFF2 file with format('woff2'). A TTF fallback in the same rule is only needed for Internet Explorer, which does not support WOFF2 (caniuse.com/woff2). Keep font-display: swap so text is visible while the font loads; the guide on font-display swap covers the details.

    TTF to WOFF2 for self-hosted Google Fonts

    The download button on Google Fonts delivers a ZIP with TTF files. To host such a font on your own server instead of loading it from fonts.gstatic.com, convert the TTF to WOFF2 here, ideally with the Latin subset, and use the generated @font-face code. Self-hosting saves the connection to another domain; the font then loads over the connection that already serves your page.

    Other conversions

    TTF to WOFF2 FAQ: upload, batches and quality

    Are my TTF files uploaded?

    No. The conversion runs in a web worker in your browser. The files are never sent to a server.

    Can I convert several TTF files at once?

    Yes. Choose or drop all styles of a family together; each file gets its own WOFF2 download and its own @font-face block with weight and style from the font.

    Is WOFF2 lossless compared to TTF?

    Yes for everything that affects rendering: outlines, hinting, kerning and ligatures stay. The file is not byte-identical after decoding back, because WOFF2 rebuilds some tables.

    What about OTF files?

    OTF files with CFF outlines have their own page, OTF to WOFF2. This page accepts them too.

    More free tools

    All free tools →

    Third-party licenses

    Conversion uses wawoff2 with Google's woff2 and Brotli (MIT) and HarfBuzz hb-subset from harfbuzzjs (MIT, Old MIT). Full license texts: THIRD_PARTY_LICENSES.txt

    A free account saves your tests and shows how your values change from one test to the next. Website performance monitoring with field data and alerts starts with the Solo plan.