Encoding tools
Font Subsetter
Shrink a font to only the glyphs your page actually uses, then download the subset as woff2 or ttf. This is on-demand subsetting, not format conversion — the font is never uploaded.
This is on-demand font subsetting, not font format conversion: glyphs your page does not use are removed, and woff2 / ttf are only the output containers. The font is processed in memory on this device and is never uploaded.
Choose a font
永和九年,岁在癸丑
Characters your page uses
Most sites block cross-origin reads, so this often fails — paste the HTML instead.
Output settings
Choose a font file first
The first run downloads about 1.6 MB of WASM (harfbuzz + the woff2 encoder); later runs use the browser cache.
Result
Your result appears here
Choose a font, add characters, then run the subsetterThe matching @font-face snippet
What it does
- Extract: reads text nodes, placeholders, pseudo-element content and alt / title.
- Subset: harfbuzz hb-subset rebuilds the glyph tables from your character set in WASM.
- Encode: woff2 is produced by the woff2 WASM encoder, never by a server.
Because of the same-origin policy this cannot render a page like font-spider’s PhantomJS did; paste text inserted by JavaScript directly. The sample font is FontAwesome 4 (SIL OFL 1.1 / MIT).
Comments
We only read your public GitHub username and avatar — no email, no write access. Comments are limited to 140 characters, cannot be edited, and can be deleted within 24 hours.
You can delete your own comment within 24 hours. Comments cannot be edited.
No comments yet — be the first.
Loading comments…