Aabestfontgenerator.
THE TYPE NOTEBOOK

WOFF and WOFF2 Font Conversion

Convert a TrueType or OpenType font to WOFF2, distinguish WOFF from WOFF2 and check the original outline flavor when decompressing.

Choose WOFF or WOFF2 for the destination, and keep the original font file. Converting the web container and changing the font’s underlying outlines are separate operations.

Sources reviewed .

01

Identify the wrapper your project actually needs

W3C publishes separate WOFF and WOFF2 specifications. Confirm the requested format and start with an original file you may convert. In a website project, the webfont filename, CSS source URL and declared format should agree. Keep the desktop resource for editing.

02

Use a documented WOFF2 conversion command

With the required fontTools dependencies available, try fonttools ttLib.woff2 compress Example.ttf -o Example.woff2. Use the documented decompress subcommand for the reverse operation. Let the converter choose an appropriate output extension unless you know the outline flavor. A WOFF2 can wrap a TrueType or CFF-flavored font.

03

Proof the web font against the original

Load the converted file in a small example and compare the same letters, accents and styles with the original. Record which file is used in the website. Read the webfont kit guide for CSS paths and the homepage text preview for a separate copyable text comparison.

GOOD QUESTIONS

Your questions, answered.

Does renaming a TTF to WOFF2 convert it?

Use an actual converter. The extension does not change the data stored in the file.

Can every WOFF2 be restored as a TTF?

Check its outline flavor. Decompression restores an OpenType resource in the corresponding flavor.

Sources & background

Sources supporting this page’s explanations. Practical examples are our editorial suggestions.