Skip to main content
Free tool

TTF to WOFF2 converter with glyph subsetting

TTF / OTF, conversion and glyph subsetting in your browser, nothing uploaded, WOFF preview

  • Free
  • No account required
Drop a font file
TTF, OTF, WOFF, processed locally in your browser
Glyph subset

Preview and export run locally. You can generate and download WOFF2 from TTF or OTF; WOFF is currently supported for preview only.

Live preview
Size 48px
Aa Bb Cc Ąą Ćć Łł Żż 1 2 3 4 5 6 7 8 9 ! ? & @ — “ ”

Add a font file and the preview shows its shapes.

A TTF to WOFF2 converter normally produces a WOFF2 file for browser delivery. This one also subsets the glyphs: it can generate a smaller WOFF2 file from TTF or OTF without uploading it, because conversion and subsetting both run in your browser.

About the tool

Why are fonts so heavy?

A single weight in TTF can be ~150 KB. A full family with italics often lands in the hundreds of KB.

TTF to WOFF2 conversion with Brotli is usually 30–50% smaller than TTF/OTF.

Subsetting keeps only the glyphs you need, often a fraction of the original.

Read the website quality benchmark to compare font weight, transfer and retest conditions with the rest of the page.

In practice

Check characters before subsetting

Use sample text with accented letters, digits, punctuation and currency symbols. Cover every language your site uses. A subset that is too narrow may cause some characters to render in a fallback font.

Step by step

How to convert a TTF font to WOFF2 and add it to a website

You turn a TTF or OTF font into a smaller WOFF2 file with the characters you need, then load it with an <code>@font-face</code> rule. Five steps include checking that the browser really uses the new file.

  1. Check the font license

    Not every license allows embedding a font on a website or cutting it down. Before you generate a file, check the terms from the author or the font vendor.

  2. Load the file and look at the preview

    Drop a TTF or OTF file and type real text from your site into the preview, including accented letters and quotation marks. You will see right away whether the font has every glyph you need.

  3. Choose the glyph subset

    Latin covers basic ASCII (U+0020 to U+007E) plus typographic punctuation: curly quotes, the ellipsis, en and em dashes and the euro sign. Latin-ext adds U+00A0 to U+017F, including Central European letters. Custom keeps only the characters you type and gives the smallest file.

  4. Generate WOFF2 and add it in CSS

    Download the file, put it on your server and add an @font-face rule with format("woff2") and font-display: swap. Add a separate rule for each weight and style the site uses.

  5. Check the font on the page

    In DevTools, open the Network tab with the Font filter and check that a .woff2 file loads. Then look through the page: a character in a different typeface means the subset left it out.

Examples

Font conversion examples and @font-face rules

We measured these sizes with this tool’s conversion code on Nunito Sans Regular, the file cometweb.io uses.

Nunito Sans Regular, TTF to WOFF2
Before
nunito-sans-regular.ttf
106.7 KB
After
nunito-sans-regular.woff2
Latin-ext: 20.0 KB (81% smaller)
Latin:     13.9 KB (87% smaller)

The same font saved as WOFF2 with every glyph weighs 35.7 KB. Most of the saving comes from WOFF2 compression, and the subset then roughly halves the file again.

An @font-face rule for one WOFF2 file
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

According to web.dev, WOFF2 works in every modern browser, so one source is enough. font-display: swap shows text in a fallback font before the file arrives.

Two subsets with unicode-range
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+00A0-017F;
}

The browser downloads a file only when the page contains a character from its unicode-range. An English page then skips the file with Central European letters.

Common mistakes

Common mistakes when converting fonts to WOFF2

  • The Latin subset on a multilingual site

    The Latin subset covers basic ASCII only. Letters such as é, ü or ł then render in a fallback font. For European languages beyond English, choose Latin-ext or a custom set.

  • Quotes and symbols missing from a custom subset

    The Custom subset keeps only the characters you type. The Latin and Latin-ext presets include curly quotes, the ellipsis, dashes and the euro sign, but with a custom list you have to add them yourself, together with the letters.

  • TTF listed first in src

    The browser uses the first source in src it can load. If you keep older formats, WOFF2 has to come first, otherwise the browser downloads the bigger file.

  • Preloading every font

    preload takes bandwidth from other resources and ignores unicode-range. Keep it for the one file the first view of the page really needs.

  • No font-display in the @font-face rule

    Without font-display, Chrome and Firefox hide text for up to 3 s while they wait for the font, and Safari even longer. swap shows text right away, and optional also limits layout shifts.

Numbers and sources

Web font formats in numbers

ValueWhat it meansSource
BrotliThe compression algorithm of WOFF2, per the W3C Recommendation of 8 August 2024. The file media type is font/woff2.W3C, WOFF 2.0
65%Share of font file requests served as WOFF2 on mobile and desktop in 2025.Web Almanac 2025, Fonts
122 KBMedian font bytes on a mobile home page in 2025.Web Almanac 2025, Page Weight
50.1%Share of mobile pages using font-display: swap in 2025, the most common value.Web Almanac 2025, Fonts
72%Share of sites that self-host at least some of their fonts in 2025.Web Almanac 2025, Fonts
3 sHow long Chrome and Firefox hide text by default while a font has not loaded. Safari waits with no limit.web.dev, font best practices

Sources checked:

Glossary

Common subsets

latinLatin basic
ASCII plus typographic punctuation: curly quotes, dashes, the ellipsis and the euro sign. Enough for English.
latin-extLatin Extended
Latin + Central European characters. Typical regional choice.
cyrillicCyrillic
When the site serves Cyrillic languages.
customCustom range
Your own character set, smallest possible file.
Performance module in Insight

File or code ready? Check the result on the live page

Core Web Vitals in every audit, with priorities, history and before/after comparison.