Developer and Text Tools

How to Make Web Fonts Small: WOFF2 Conversion and Subsetting

Convert TTF and OTF fonts to WOFF2, subset them to the characters you actually use, keep kerning and write correct @font-face CSS for faster pages.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
How to Make Web Fonts Small: WOFF2 Conversion and Subsetting

Fonts are easy to forget when tuning a website, yet a single desktop font can weigh more than all your page's scripts. Two techniques make them small: WOFF2 compression and subsetting. The free Font Converter and Web Font Subsetter does both in your browser and writes the CSS. This guide explains when to use each and how to avoid the common traps.

Why fonts are big

A modern font may cover Latin, Greek, Cyrillic and Vietnamese, with thousands of glyphs, hinting instructions and OpenType features. A site in English might use a hundred of those glyphs. Serving the whole file as TTF means every visitor downloads the rest for nothing.

Step 1: open your fonts

Open TTF, OTF, WOFF or WOFF2 files, several at a time if you have a family. The table lists family, style, weight, glyph count, mapped characters and size, which already shows where the weight is.

Step 2: convert losslessly to WOFF2

Choose WOFF2 output and Keep every character. WOFF2 uses Brotli compression plus transforms designed for font tables, and the tool uses the reference encoder compiled to WebAssembly. Nothing inside the font changes: hinting, features and metadata stay the same. This alone usually cuts the size by half or more.

Step 3: subset when you can

Subsetting removes glyphs you do not need. Choose By language for whole scripts, such as Basic Latin plus Latin-1 for most Western European sites. Choose Only characters used in my text for display fonts used in a logo or a few headings: paste the text and every distinct character is kept. Custom ranges accept Unicode ranges for precise control. Kerning between the kept letters is preserved.

Practical example

A large TrueType sans-serif weighs 755 KB with 3,381 glyphs. Converted losslessly to WOFF2 it becomes 313 KB. Subset to Basic Latin plus Latin-1, it keeps 206 characters and 117 kerning pairs, and the WOFF2 file drops to 16.8 KB, small enough to load almost instantly on a phone.

Step 4: copy the CSS

Set the folder where the files will live and the font-display value, usually swap for body text. The CSS panel writes one @font-face per file with formats in the right order, weight and style, and a unicode-range for subsets. Browsers use unicode-range to decide whether a page needs a file at all, so you can split a font into language chunks and load each only when needed.

Step 5: deploy

Download the ZIP with the fonts and fonts.css. Serve fonts from your own domain with long cache headers. If fonts are on a different domain, add an Access-Control-Allow-Origin header, or browsers will refuse them.

What subsetting removes

Subsetting rebuilds outlines in CFF form. Hinting disappears, which matters little on modern high-resolution screens, and complex layout features such as ligatures and contextual alternates are dropped. If your design depends on those features, use lossless conversion instead.

Common mistakes

  • Subsetting a body font too tightly, so names with accents fall back to another font.
  • Shipping WOFF and TTF to every browser when WOFF2 alone would do.
  • Ignoring licence terms on modification and web embedding.

Checking the result

After deploying, open your browser's developer tools, reload the page and look at the network panel filtered to fonts. You should see only WOFF2 files, each with a small size, and no font downloaded for scripts your page does not use. If a character shows in a fallback font, add it to the subset and convert again.

Privacy

Fonts are processed in your browser and never uploaded, which matters for commercial fonts you are not allowed to share.

Final thoughts

Small fonts are one of the cheapest speed wins on the web. Convert to WOFF2 always, subset when you know your content and let unicode-range do the rest. This guide is technical guidance, not legal advice on font licences.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages