TrueType Font Subsetter (TTF / WOFF)

Keep only the glyphs your page or app uses and shrink a font file by 90 percent or more.

Use the tool

Why this tool exists

Type the characters you need (and optionally Unicode ranges such as U+00C0-00FF). The tool finds each character's glyph through the font's cmap, adds the parts of composite glyphs such as accented letters and .notdef, renumbers the glyphs, and rebuilds glyf, loca, hmtx, cmap (formats 4 and 12), post, maxp, hhea and head with correct checksums. The result is saved as TTF or as WOFF (zlib compressed). WOFF 1 input files are read too.

Tested with fontTools and FreeType on DejaVu, Lato and Comic Sans fonts plus Noto and Serif fonts with characters outside the Basic Multilingual Plane: every kept character kept its cmap entry, outline, advance width and side bearing, every table loaded without error, and glyphs rendered pixel for pixel like the original. For example, a 760 KB font shrank to about 25 KB for the characters of a short sentence.

Limits: OpenType layout tables are dropped, so kerning, ligatures and contextual forms are lost; CFF (.otf) fonts, variable fonts, WOFF2 (needs Brotli) and collections are not supported; hinting programs are kept as they are; OS/2 Unicode range bits are not updated. Font licences often restrict subsetting and embedding, so check yours first.

How to use it

  1. Choose a .ttf or .woff font file.
  2. Type the characters you need, tick ASCII, or add ranges.
  3. Pick TTF or WOFF output.
  4. Download the subset and check the licence allows it.

Frequently asked questions

Why did my kerning disappear?

Kerning and ligatures live in GPOS, GSUB or kern tables, which this tool drops. Browsers then lay text out with plain advance widths.

Can it subset an OTF with CFF outlines or a variable font?

No. CFF outlines and variation tables need a different rewriter. You will get a clear error.

Can it output WOFF2?

No. WOFF2 needs Brotli compression, which browsers cannot produce for page code. WOFF (zlib) and TTF are offered.

Am I allowed to subset any font?

Not always. Some licences forbid modification or require a specific permission. Open-source fonts such as those under the SIL Open Font License usually allow it, sometimes with a renaming rule.

Is the font uploaded?

No. The work happens in your browser.