Convert TTF to WOFF2
FileReshape's TTF to WOFF2 converter packs TrueType and OpenType fonts into WOFF2 web fonts with Google's woff2 library, the same compression used by Google Fonts. It runs in your browser and the fonts are not uploaded. The font is not changed or subset, so all characters stay, and converting does not change what the font's licence allows.
Did a file not convert correctly? E-mail [email protected], ideally with a small sample file, and it will be fixed.
Key facts
- Input: TrueType font (.ttf). Output: WOFF2 web font (.woff2).
- Your files are not uploaded: the work is done in your browser, on your own device.
- File size: fonts up to 50 MB.
- Needs a current browser (Chrome, Edge, Firefox or Safari) on a computer, tablet or phone; nothing to install.
- Free to use, with no sign-up.
Why convert fonts to WOFF2
A website should serve its fonts as WOFF2. The format wraps an ordinary TrueType or OpenType font in Brotli compression with a special encoding of the glyph data, so the file is usually 50 to 70 % smaller than the TTF and the page shows its text sooner. This tool converts .ttf and .otf files to .woff2 with the woff2 library that Google wrote for the format, compiled to run in your browser. Drop a whole family at once, regular, bold and italic, and you get one ZIP with a .woff2 for each. The conversion is lossless: every glyph, the kerning, ligatures, hinting and names stay exactly as they were, and a WOFF2 can be unpacked into the original font again. Licensed fonts never leave your computer, which matters when the licence forbids sending the font files to third parties.
How to convert TTF to WOFF2
- Drop one or more .ttf or .otf files in the box, or click to choose them.
- Check the font names and glyph counts in the list.
- Click Convert to WOFF2. One font downloads as a .woff2 file; several come as a ZIP.
What to know about web fonts
Check the licence for web use
Converting a font does not change its licence. Many commercial fonts are licensed for desktop use only and need a separate web licence. Fonts under the SIL Open Font License, such as most Google Fonts and many fonts on GitHub, may be converted and used on any website. When the licence flags inside a font forbid embedding, the tool converts it but tells you.
Using the WOFF2 in CSS
Upload the .woff2 next to your stylesheet and declare it with @font-face, for example src: url("myfont.woff2") format("woff2"), with font-weight and font-style matching each file of the family. All current browsers read WOFF2, so a WOFF fallback is only needed for very old browsers.
No subsetting
The tool keeps every character of the font. A font with Cyrillic, Greek or Vietnamese letters you do not need stays larger than necessary. Removing characters (subsetting) needs a tool such as pyftsubset or a font editor; the conversion here never drops anything.
Font collections
A .ttc file holds several fonts in one file and cannot be converted here. WOFF2 for a collection is rarely supported by browsers anyway; extract the single fonts with a font editor first.
About the formats
TrueType font
TrueType (.ttf) is the font format Apple and Microsoft introduced in 1991. Its glyphs are drawn with quadratic curves and it can carry detailed hinting instructions for sharp text at small sizes on screen. Every operating system, office suite and design program installs and uses TTF fonts.
- Installs on Windows, macOS, Linux, Android and iOS without extra software.
- Since OpenType (1996) a .ttf file can hold the same OpenType features as an .otf: ligatures, kerning, small caps.
- Unlike web fonts, a TTF is not compressed, so it is usually two to three times the size of the WOFF2 version.
WOFF2 web font
WOFF2 (Web Open Font Format 2.0) is a compressed package for TrueType and OpenType fonts made for websites. It became a W3C Recommendation in 2018 and uses Brotli compression plus a special encoding of the glyph data, which makes it about 30 % smaller than WOFF 1.0. Every current browser supports it.
- Used in CSS with @font-face and src: url(font.woff2) format('woff2').
- Operating systems do not install WOFF2 files; convert them to TTF or OTF first.
- The font inside is unchanged, so a WOFF2 can be turned back into the original TTF or OTF.
Frequently asked questions
Are my fonts uploaded?
No. The fonts are read and compressed by your browser on your own device, and nothing is sent to a server.
How much smaller does a font get?
Usually 50 to 70 % smaller than the TTF and about 30 % smaller than WOFF 1.0. The exact saving depends on the font; the result shows the size before and after.
Does WOFF2 change how the font looks?
No. WOFF2 is lossless compression. The browser unpacks exactly the same font, with the same outlines, spacing and hinting.
Can I convert OTF fonts too?
Yes. OpenType fonts with PostScript (CFF) outlines are packed as they are, and browsers read them from WOFF2 just like TrueType fonts.