Skip to content
← Typography Tools

Unicode Subset Preview

Upload a font and see exactly which Unicode blocks it covers, with the unicode-range CSS declaration ready to copy.

Related Tools

Related Tool
Font Loading Strategy
Related Tool
Font Metrics Inspector
Related Tool
Special Character Picker
Related Tool
Google Fonts Explorer

What unicode-range does for performance

unicode-range is a CSS descriptor inside @font-face that limits when the browser downloads a font. With unicode-range: U+0000-00FF declared on the Latin subset, the browser only fetches the font file if the page contains a character in that range. Cyrillic, Greek, and CJK subsets are skipped entirely. The result is that a Latin-only page downloads one small file instead of the full multi-script family.

Google Fonts splits every font into roughly 10 to 20 unicode-range subsets behind the scenes. When you embed a Google Font, the browser only downloads the subsets your page actually uses. Self-hosting can achieve the same result if you build the @font-face blocks with the right unicode-range values. The Preview tool tells you which ranges your font actually covers, so you know which to declare.

How the Preview parses your font

Drop a TTF, OTF, WOFF or WOFF2 file into the Preview and it reads the font's cmap table directly in the browser. The cmap table maps Unicode code points to glyph indices inside the font. The Preview checks every code point in 12 common blocks (Basic Latin, Latin-1 Supplement, Latin Extended-A and -B, Greek and Coptic, Cyrillic, Hebrew, Arabic, General Punctuation, Currency Symbols, Mathematical Operators, Arrows) and reports how many have a glyph. The percentage is mapped code points divided by every slot in the block, so control characters and unassigned code points count against it (see the worked example below). Export JSON lists the missing code points for each block.

Common Use Cases

Performance engineers self-hosting fonts use the Preview to see which blocks their font file covers, then ship one @font-face block per subset. Designers picking a brand font use it to confirm coverage of the scripts they need before licensing. Developers debugging missing glyphs use it to see whether the font maps a character at all, rather than the browser silently substituting from a fallback. i18n teams export the JSON and check the missing code points against the characters their languages need, such as Polish or Vietnamese accented letters.

Worked example: why a complete Latin font shows 74.2%

We loaded two common system fonts into the Preview in Chromium on October 12, 2026: DejaVu Sans 2.37 and Liberation Sans Regular. Then we checked every block against the fonts' own cmap tables, read independently with fontTools 4.62. For each block, the number of mapped code points matched fontTools exactly in both fonts. The percentages need reading with care, though. The Preview divides by every slot in the block, including control characters and code points Unicode has not assigned yet.

BlockSlotsAssigned, excluding controls (Unicode 15.0)DejaVu Sans: Preview %DejaVu Sans: share of assignedLiberation Sans: Preview %
Basic Latin1289574.2%100%74.2%
Latin-1 Supplement1289675.0%100%75.0%
Greek and Coptic14413593.8%100%88.2%
Hebrew1128848.2%61.4%77.7%
Arabic25625664.5%64.5%0%
Currency Symbols483354.2%78.8%47.9%
Mathematical Operators256256100%100%7.0%

So 74.2% in Basic Latin and 75.0% in Latin-1 Supplement is the ceiling for any font. The remaining 33 and 32 slots in those blocks are C0 and C1 control characters, which fonts don't map. Greek and Coptic tops out at 93.8% for the same reason: 9 of its 144 slots are unassigned. Where the two columns agree, as with Arabic, the block has no gaps and the Preview's number is the real share. When you need to know exactly which characters are missing, use Export JSON. It lists every unmapped code point per block, including the control and unassigned ones, so filter those out before treating them as gaps.

From coverage to @font-face

The generated CSS gives one unicode-range line per block that has at least one glyph. Each line carries a comment with its percentage, so you can drop the blocks you don't need. Under the CSS Fonts Module Level 4 rules, a browser downloads a face only when the page uses a character inside its declared range. That only saves bytes if each range points at a font file actually subset to it, for example with fontTools' pyftsubset --unicodes=U+0000-00FF. All current browsers support unicode-range, and MDN's compatibility data lists it in Chrome 1, Firefox 36 and Safari 3.1.

Fonts are read in TTF, OTF, WOFF and WOFF2. WOFF2 needs a Brotli decompressor. Firefox 147+ and Safari 18.4+ have one built into DecompressionStream, and Chrome and Edge, which don't support the "brotli" format yet, use the page's own decoder.

Frequently Asked Questions

What file formats are supported?
TTF, OTF, WOFF and WOFF2. The Preview reads the file's signature bytes, unpacks WOFF with the browser's built-in zlib decompressor and WOFF2 with Brotli (built into Firefox 147+ and Safari 18.4+; Chrome and Edge use a self-hosted copy of Google's MIT-licensed decoder), then reads the cmap table directly. Font collections (.ttc) and the legacy EOT format are not supported.
Why are some fonts marked as having partial coverage?
Because the percentage counts every slot in a Unicode block, including control characters and unassigned code points that no font maps. A font with every printable Basic Latin character still scores 74.2% (95 of 128). Partial coverage is only a real gap when the missing code points are characters you need; Export JSON lists the missing code points for each block so you can check.
What is the difference between a Unicode block and a unicode-range?
Unicode blocks are fixed groupings defined by the Unicode standard: Basic Latin, Cyrillic, Greek and Coptic, and so on. unicode-range is a CSS descriptor that accepts any set of code points or ranges. The Preview reports by block and writes one unicode-range line per block with glyphs; you can edit the copied CSS to combine, narrow or remove ranges before using it.
Are variable axes also reported alongside glyph coverage?
No. The Preview reads only the cmap and maxp tables, so it reports code point coverage and glyph count, not variation axes. Coverage is the same for every instance of a variable font because all instances share one cmap. For axes, use the Font Metrics Inspector or the Variable Font Tester.
Can I export the subset list as JSON?
Yes. Below the visual report there is an Export JSON button that produces a structured object listing every block, the code point range, the coverage percentage, and the specific missing code points. This is useful for automated CI checks or for input to a subsetting build step.
Will the font I upload be sent anywhere?
No. The font is parsed entirely in your browser using JavaScript. The file never leaves your machine. The Preview works offline once the page is loaded. This matters because licensed commercial fonts often have terms that prohibit uploading them to third-party servers, and the Preview respects that by never doing so.
How accurate is the coverage percentage?
The counts are exact: in our test on DejaVu Sans and Liberation Sans, the number of mapped code points per block matched fontTools for every block. The percentage is that count divided by every slot in the block, including control characters and unassigned code points, so it understates real coverage in blocks with such slots. Code points mapped to glyph 0 (.notdef) are not counted.
Can I generate the unicode-range CSS for self-hosting Google Fonts?
Yes, as a starting point. The Preview writes one unicode-range line per Unicode block the font covers. It does not reproduce Google Fonts' own subset definitions (Google's latin subset, for example, mixes U+0000-00FF with selected punctuation and symbols), so if you are matching Google's files, copy the ranges from Google's CSS instead. Each range only saves bytes if it points at a font file subset to it.