Convert and subset TTF, OTF, WOFF2
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Opens
TTFOTFWOFFWOFF2TTC- Saves as
WOFF2WOFFTTFOTFCSSZIP- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- One file at a time
- Offline use
- Works without a connection once this page has loaded
- Built with
- WebAssembly, Web Workers, HarfBuzz (hb-subset), wawoff2, and fflate
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
- Limits
- Fonts up to 80 MB; subsetting works inside a fixed 64 MB WebAssembly memory.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About Font Converter & Subsetter
Font Converter & Subsetter turns a TTF, OTF, WOFF, WOFF2 or TTC font into WOFF2, WOFF and TTF or OTF files, and can strip it down to the characters you actually need. Paste the text of a page, type Unicode ranges such as U+0020-007E, or tick presets: Basic Latin, Latin-1 with Latin Extended-A, common punctuation, GB2312 level 1 (3,755 hanzi) or all of GB2312 (6,763 hanzi). With Noto Sans SC, a 10 MB TTF, a six-line café menu comes out as an 11 KB WOFF2, and GB2312 level 1 plus Latin and punctuation as about 530 KB.
HarfBuzz's hb-subset does the subsetting and Google's woff2 encoder the WOFF2 compression, both compiled to WebAssembly and running in a Web Worker; WOFF 1.0 files get per-table zlib compression from fflate. The font never leaves your device. The tool also reads the licence fields: it shows the OS/2 fsType value, warns when embedding is restricted, and spots SIL OFL Reserved Font Names so a modified font can be renamed. Characters in your text that the font lacks are listed one by one, and the @font-face rule for the new files is written for you.
Font Converter & Subsetter runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use Font Converter & Subsetter
- Drop a font file (TTF, OTF, WOFF, WOFF2 or TTC) onto the page. For a font collection, pick the font you want from the list.
- Choose how to subset: By text (paste the page's text), Ranges (Unicode code points), Presets, or Convert only to change the format without removing glyphs.
- Under Options, pick the output formats, decide whether to keep OpenType features and hinting, and set the font name used in the CSS.
- Check the glyph count, file sizes and preview, then download each file, or everything plus a CSS file as a ZIP.
Frequently asked questions
Why does my OTF stay an OTF instead of becoming a TTF?
An OTF with CFF (PostScript) outlines keeps those outlines. The tool changes the container and removes glyphs, but it does not redraw cubic CFF curves as the quadratic curves a .ttf needs, because that conversion changes every outline. CFF fonts are therefore written as .otf, .woff and .woff2, and fonts with TrueType outlines as .ttf. Browsers render both kinds of WOFF2 the same way.
How big a font can it handle?
Files up to 80 MB can be opened. Subsetting runs inside HarfBuzz's WebAssembly module, whose memory is fixed at 64 MB. In our tests every subset worked, including all 6,763 GB2312 characters from a 24 MB variable font and from a 35 MB font collection. Keeping every glyph while removing hinting or OpenType features is the heavy case: it worked up to about 18 MB and ran out of memory at 21 MB; the tool then stops with a message instead of writing a broken file. Convert only with default options skips HarfBuzz entirely. WOFF2 is the slow step: about 2 seconds for GB2312 level 1, 20 to 60 seconds for a whole 10–24 MB CJK font.
Which characters end up in the subset?
Everything you ask for, combined: the unique characters of the pasted text (line breaks and tabs are ignored), the ranges you type, and any presets ticked under Also keep. hb-subset then adds the extra glyphs those characters reach through OpenType features, such as ligatures, alternate forms and accents, which is why the glyph count can be higher than the character count. The .notdef glyph is always kept. Characters the font doesn't contain are listed in red and left out.
Am I allowed to subset or convert this font?
That depends on the font's licence, not on the tool. The page shows the licence text and the OS/2 fsType value stored in the font. fsType 2 (restricted), the no-subsetting bit and bitmap-only embedding get a red warning, but conversion still works, because only you know what your licence permits. For SIL OFL fonts the tool reads the Reserved Font Name from the copyright notice; if that name is part of the family name, the output is renamed by default, since the OFL forbids it on modified versions.
What do the OpenType features and hinting options do?
Keep OpenType features (on by default) keeps every GSUB and GPOS lookup: kerning, ligatures, vertical forms, locale-specific glyphs. Turning it off drops the GSUB, GPOS, GDEF and kern tables for the smallest file, at the cost of kerning and ligatures. Remove hinting deletes TrueType instructions (fpgm, prep, cvt and per-glyph programs) or CFF hints. Files get smaller; on Windows, small text may look slightly softer, while macOS, iOS and Android ignore hinting anyway.