TTF to WOFF2 converter with glyph subsetting
TTF / OTF, conversion and glyph subsetting in your browser, nothing uploaded, WOFF preview
- Free
- No account required
Add a font file and the preview shows its shapes.
A TTF to WOFF2 converter normally produces a WOFF2 file for browser delivery. This one also subsets the glyphs: it can generate a smaller WOFF2 file from TTF or OTF without uploading it, because conversion and subsetting both run in your browser.
Why are fonts so heavy?
A single weight in TTF can be ~150 KB. A full family with italics often lands in the hundreds of KB.
TTF to WOFF2 conversion with Brotli is usually 30–50% smaller than TTF/OTF.
Subsetting keeps only the glyphs you need, often a fraction of the original.
Read the website quality benchmark to compare font weight, transfer and retest conditions with the rest of the page.
Check characters before subsetting
Use sample text with accented letters, digits, punctuation and currency symbols. Cover every language your site uses. A subset that is too narrow may cause some characters to render in a fallback font.
How to convert a TTF font to WOFF2 and add it to a website
You turn a TTF or OTF font into a smaller WOFF2 file with the characters you need, then load it with an <code>@font-face</code> rule. Five steps include checking that the browser really uses the new file.
-
Check the font license
Not every license allows embedding a font on a website or cutting it down. Before you generate a file, check the terms from the author or the font vendor.
-
Load the file and look at the preview
Drop a TTF or OTF file and type real text from your site into the preview, including accented letters and quotation marks. You will see right away whether the font has every glyph you need.
-
Choose the glyph subset
Latin covers basic ASCII (U+0020 to U+007E) plus typographic punctuation: curly quotes, the ellipsis, en and em dashes and the euro sign. Latin-ext adds U+00A0 to U+017F, including Central European letters. Custom keeps only the characters you type and gives the smallest file.
-
Generate WOFF2 and add it in CSS
Download the file, put it on your server and add an
@font-facerule withformat("woff2")andfont-display: swap. Add a separate rule for each weight and style the site uses. -
Check the font on the page
In DevTools, open the Network tab with the Font filter and check that a .woff2 file loads. Then look through the page: a character in a different typeface means the subset left it out.
Font conversion examples and @font-face rules
We measured these sizes with this tool’s conversion code on Nunito Sans Regular, the file cometweb.io uses.
nunito-sans-regular.ttf
106.7 KBnunito-sans-regular.woff2
Latin-ext: 20.0 KB (81% smaller)
Latin: 13.9 KB (87% smaller)The same font saved as WOFF2 with every glyph weighs 35.7 KB. Most of the saving comes from WOFF2 compression, and the subset then roughly halves the file again.
@font-face {
font-family: "Nunito Sans";
src: url("/fonts/nunito-sans-regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
} According to web.dev, WOFF2 works in every modern browser, so one source is enough. font-display: swap shows text in a fallback font before the file arrives.
@font-face {
font-family: "Nunito Sans";
src: url("/fonts/nunito-latin.woff2") format("woff2");
unicode-range: U+0020-007E, U+2000-206F, U+20AC, U+2122;
}
@font-face {
font-family: "Nunito Sans";
src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
unicode-range: U+00A0-017F;
} The browser downloads a file only when the page contains a character from its unicode-range. An English page then skips the file with Central European letters.
Common mistakes when converting fonts to WOFF2
-
The Latin subset on a multilingual site
The Latin subset covers basic ASCII only. Letters such as é, ü or ł then render in a fallback font. For European languages beyond English, choose Latin-ext or a custom set.
-
Quotes and symbols missing from a custom subset
The Custom subset keeps only the characters you type. The Latin and Latin-ext presets include curly quotes, the ellipsis, dashes and the euro sign, but with a custom list you have to add them yourself, together with the letters.
-
TTF listed first in src
The browser uses the first source in
srcit can load. If you keep older formats, WOFF2 has to come first, otherwise the browser downloads the bigger file. -
Preloading every font
preloadtakes bandwidth from other resources and ignoresunicode-range. Keep it for the one file the first view of the page really needs. -
No font-display in the @font-face rule
Without
font-display, Chrome and Firefox hide text for up to 3 s while they wait for the font, and Safari even longer.swapshows text right away, andoptionalalso limits layout shifts.
Web font formats in numbers
| Value | What it means | Source |
|---|---|---|
| Brotli | The compression algorithm of WOFF2, per the W3C Recommendation of 8 August 2024. The file media type is font/woff2. | W3C, WOFF 2.0 |
| 65% | Share of font file requests served as WOFF2 on mobile and desktop in 2025. | Web Almanac 2025, Fonts |
| 122 KB | Median font bytes on a mobile home page in 2025. | Web Almanac 2025, Page Weight |
| 50.1% | Share of mobile pages using font-display: swap in 2025, the most common value. | Web Almanac 2025, Fonts |
| 72% | Share of sites that self-host at least some of their fonts in 2025. | Web Almanac 2025, Fonts |
| 3 s | How long Chrome and Firefox hide text by default while a font has not loaded. Safari waits with no limit. | web.dev, font best practices |
Sources checked:
Common subsets
- latinLatin basic
- ASCII plus typographic punctuation: curly quotes, dashes, the ellipsis and the euro sign. Enough for English.
- latin-extLatin Extended
- Latin + Central European characters. Typical regional choice.
- cyrillicCyrillic
- When the site serves Cyrillic languages.
- customCustom range
- Your own character set, smallest possible file.
Add a TTF or OTF file, preview it and choose the glyph subset to keep. Conversion runs locally in your browser and lets you download a WOFF2 file containing the selected character range.
Yes, you can convert TTF and OTF locally and download WOFF2. WOFF files can be previewed here, but WOFF export is not supported yet.
A WOFF converter prepares a font for browser delivery. WOFF2 usually reduces transfer size compared with TTF or OTF, but you still need to verify glyph coverage, weights and the @font-face declaration.
Yes. TTF and OTF files are converted locally in the browser and can be downloaded as WOFF2 with the selected glyph subset applied. Check coverage before using the file in production.
Yes for nearly all modern traffic. IE11 needs a WOFF fallback.
Prefer swap or optional. Avoid block (FOIT).
It works, but self-host + subset is usually faster and more private.
They are for different jobs. TTF is the source and desktop format; WOFF2 is the web delivery format, Brotli-compressed and usually 30–50% smaller than the same TTF. Keep the TTF as your master file and serve WOFF2 through @font-face. There is no reason to send a browser a TTF.
Not with this tool: export runs from TTF and OTF, and a WOFF file can only be previewed here. Use the original TTF or OTF if you still have it. WOFF and WOFF2 wrap the same underlying font data, so converting from the source is one step instead of two and keeps the glyph subset under your control.
Choose the font subset by the languages on your site: Latin is enough for English text, and Latin-ext (U+00A0 to U+017F) adds Central and Western European letters. Both presets also keep curly quotes, the ellipsis, dashes and the euro sign.
The converter does not keep hinting: on export it writes the font without hinting instructions, while kerning stays. If the font has hinting tuned for small sizes, compare the text on Windows before you ship.
You check WOFF2 font use in DevTools: the Network tab with the Font filter lists downloaded files and their format. A font/woff2 response type and a .woff2 extension mean the browser fetched the right file.
What else might come in handy
File or code ready? Check the result on the live page
Core Web Vitals in every audit, with priorities, history and before/after comparison.