Convert TTF to WOFF2 for the Web
Upload a TrueType font and get a WOFF2 file ready for @font-face, with its glyphs, kerning and hinting intact. Check one thing first: ligatures and other GSUB features are not carried into the output, so test any text that relies on them.
Download Started!
How would you rate your experience with MiConvert?
What a TTF to WOFF2 conversion does to your font
TTF is the TrueType format that desktop systems install. Browsers will load it through @font-face, but the format itself stores its tables uncompressed. WOFF2 is a wrapper made for the web: it holds the same font tables, compresses them with Brotli, and every current browser supports it. If a performance audit flags your font files as heavy, or a theme builder only accepts .woff2 uploads, this is the conversion it is asking for.
On our server, the converter reads the whole file and identifies it from its first bytes rather than its extension. It then parses the font with the fonteditor-core library and writes a clean TrueType table set. That table set goes to Google's WOFF2 encoder, compiled to WebAssembly. If that encoder throws an error, a second encoder (ttf2woff2) takes over. The work runs in a separate process with a 12-minute ceiling.
Kept: every glyph, every Unicode code point in the character map, advance widths, GPOS kerning and mark positioning, and the legacy kern table. Your TTF's hinting tables (fpgm, cvt, prep, gasp) are kept when it has them. The OS/2 embedding flag and the copyright, license and license-URL name entries pass through unchanged. Not kept: GSUB, which removes ligatures, small caps, stylistic sets, contextual alternates and the substitutions that Arabic, Indic and similar scripts depend on. GDEF, STAT, LTSH, hdmx and name records numbered 256 and up are also dropped. Variable-font, color and vertical-metric tables are outside the set the writer can produce.
In our own test, the WOFF2 came out about 65% smaller than the TrueType data it was built from. Fonts uploaded on this page tend to be large, so expect most to take tens of seconds to about a minute. Complete Chinese, Japanese or Korean fonts can take several minutes.
The best fit is a Latin text font used for headings and body copy that does not rely on ligatures. For scripts that need shaping, or a variable font you want to keep variable, use a command-line tool instead (see the FAQ).
How to convert TTF to WOFF2
- Make sure you have a single .ttf file. A .ttc collection is refused at upload, and one renamed to .ttf fails to parse, so extract the individual font first.
- If you only need part of a large font, subset it before converting, for example with pyftsubset. This converter keeps every glyph and has no subsetting options.
- Upload the TTF. Without an account, each file can be up to 50 MB, and you can add up to 10 fonts in one batch.
- Keep WOFF2 as the target and start the conversion. Big CJK fonts can run for minutes, so allow time before the download appears.
- Download the .woff2 within about 4 hours. Reference it in your stylesheet with src: url('font.woff2') format('woff2').
- Load a test page and type text with kerning pairs, accents and any ligatures you rely on, since ligatures will not substitute.
What the TTF to WOFF2 converter handles
- Google's WOFF2 encoder The main writer is the Brotli-based encoder Google publishes. ttf2woff2 is the fallback if it fails on a particular font.
- Kerning and hinting carried over GPOS positioning, the kern table and TrueType hinting instructions are written into the WOFF2, so spacing and hinted rendering follow the source.
- Detection by content Each upload is identified from its header bytes, so a TrueType font with a mislabelled extension still parses.
- License fields untouched The embedding permission flag and the copyright and license entries are copied as they are. Converting does not change what your font license allows.
- Batches by plan Guests and free accounts can send 10 fonts per batch, Plus 25 and Pro 50. Each WOFF2 is downloaded on its own.
- Isolated, time-capped processing Each font is encoded in a separate child process on our server and stopped after 12 minutes, so a slow font cannot lock up the converter itself.
Video Tutorial
Why use MiConvert for TTF to WOFF2? It's free, fast, and works in your browser! 🔗 https://miconvert.com/en/ttf-to-woff2?utm_source=youtube&utm_medium=social&utm_campaign=ttf-to-woff2 ✨ Why MiConver
TTF to WOFF2 questions
Can I convert a variable TTF to WOFF2 and keep the axes?
No. The axis and variation tables (fvar, gvar and related ones) are not among the tables our converter can write. The output is a static font made from whatever outlines sit in the glyf table, and weight or width sliders stop working. To compress a variable font without changing it, run Google's woff2_compress or the fontTools WOFF2 compressor on your own machine. Both wrap the existing tables instead of rebuilding them.
How do I convert TTF to WOFF2 on Linux or from the command line?
This converter is a web page, so it works from Linux or any other system with nothing to install; the conversion itself happens on our server. It is not a command-line tool. For offline or scripted builds, build the woff2 project from Google's GitHub and run woff2_compress font.ttf. Alternatively, install fontTools with Python and use its woff2 compress command. Both of those also keep GSUB, which this converter drops.
Will ligatures and OpenType features still work after converting?
Kerning and mark positioning will, because GPOS is kept. Anything that swaps one glyph for another will not: fi and fl ligatures, small caps, stylistic sets, contextual alternates, and the shaping that Arabic or Devanagari text needs. If your design depends on those, use one of the command-line tools mentioned above.
Can I make both WOFF and WOFF2 files from the same TTF?
Yes, by running the TTF to WOFF conversion separately. Our WOFF output is not compressed, though, and ends up about the same size as the TTF, so it saves no bandwidth. Current browsers all read WOFF2; WOFF matters only for a few older ones.
Why did I get 'Failed to parse source font (.ttf)'?
The file could not be read as a font. The usual causes are a damaged or partly downloaded file, a different file type given a .ttf name, or a font collection renamed to .ttf. Re-download or re-export the font from its source, or extract a single face from the collection, and upload it again.
Why is my font taking so long, or ending with a timeout?
Anything still running after 12 minutes stops with 'Font conversion timed out after 720s'. Subset the font to the characters your site uses (see step 2), then convert the smaller file.
Is my font kept after converting?
The TTF goes over HTTPS to our server, where the conversion runs, and it is deleted as soon as the job finishes. The WOFF2 can be downloaded for about 4 hours and is then removed automatically. The download link is a random token that works for anyone who has it until it expires, so treat it like the file itself. File names, sizes and results are logged so we can operate the service.