Engineering Guides

How to Shrink 15 MB CJK Fonts to 60 KB via Subsetting & unicode-range Splitting

Cut 15–25 MB Chinese, Japanese, and Korean fonts down to 58 KB subsets or auto-split into CSS unicode-range WOFF2 chunks locally without 5 MB caps.

5 min readUpdated:

Quick Answer

Full Chinese, Japanese, and Korean fonts carry 20,000–65,000 glyphs (8–25 MB), crashing LCP on the web. For fixed marketing copy, subset exact glyphs with HarfBuzz WASM (14.8 MB → ~58 KB). For dynamic blogs or docs, split into frequency-bucketed ~60 KB WOFF2 unicode-range slices.

Why traditional online font converters fail on CJK fonts

Most legacy web font generators impose strict 5 MB file limits to protect their server bandwidth—instantly rejecting Source Han Sans, Noto Sans CJK, PingFang, and commercial Chinese/Japanese/Korean foundries. Even when accepted, converting a 16 MB TTF directly to a single 9 MB WOFF2 still stalls mobile page loads.

Because FontTo runs HarfBuzz WASM (hb-subset.wasm) and Google WOFF2 directly inside your browser Web Workers with explicit heap cleanup, 15–30 MB CJK files process locally with zero upload caps.

  • Strategy A — Static Copy Subsetting: Best for hero headlines, landing pages, PDFs, or brand slogans where exact characters are known (99%+ savings).
  • Strategy B — unicode-range Dynamic Chunking: Best for blogs, CMS sites, and docs where browsers lazily fetch only the 50–70 KB slices matching rendered text.

Watch out for missing punctuation and fallback flash

A classic mistake when subsetting CJK copy is keeping only body hanzi/kanji/hangul while forgetting full-width commas, curly quotes, em-dashes, digits, and currency symbols. Whenever a user's browser hits a missing glyph, it falls back to an ugly mismatched system serif or SimSun.

Always keep 'Auto-include common punctuation & digits' enabled and verify your text against FontTo's live Missing-Character Radar before exporting.

How CSS unicode-range lazy-loading works in browsers

When CJK Font Splitter slices a full CJK typeface into 50–80 KB WOFF2 chunks grouped by character frequency, it emits a ready-to-deploy result.css file. Browsers parse all @font-face rules at 0 byte cost and download only the few slices whose unicode-range intersects characters actually visible on the page.

@font-face {
  font-family: 'NotoSansSC';
  src: url('./slice-01.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+4E00-4E2D, U+4E86, U+662F, U+7684;
}

Frequently asked questions

Should I use single-file subsetting or unicode-range splitting?

Use single-file subsetting (3,500 common chars or custom text) for fixed landing pages and UI labels; use unicode-range splitting for dynamic articles, comments, or documentation sites.

Can I use Japanese JIS Level 1 or Korean KS X 1001 presets?

Yes. Dedicated Japanese (JIS Level 1 / Kana) and Korean (KS X 1001 2,350-syllable) presets strip rare archival characters while covering everyday publishing.

How does FontTo avoid browser memory crashes on 25 MB CJK fonts?

Every HarfBuzz subset call runs off the main thread in a dedicated Worker that frees WASM heap pointers after every slice and recycles the Worker after large jobs.

Authoritative References

Tools used in this guide

Related formats

Related Comparisons

More engineering guides