OTF to WOFF2 Converter for Web Fonts
Upload an OpenType font and get a Brotli-compressed WOFF2 you can serve with @font-face, with its glyphs, character mapping, widths and kerning carried over. Check one thing first: ligatures, stylistic sets and other OpenType substitution features are removed during conversion, so fonts that depend on them need a different tool.
Download Started!
How would you rate your experience with MiConvert?
What happens when an OTF becomes a WOFF2
OTF (OpenType) is the format foundries and type designers ship for desktop use. Most commercial OTF files store their letters as CFF, or PostScript, outlines. Browsers can load a raw OTF, but it is uncompressed and heavy, so self-hosted web fonts are normally served as WOFF2. WOFF2 is the Brotli-compressed web font format that every current browser supports.
MiConvert converts the font on our server, in a separate process. It identifies the font from its first bytes rather than its extension, so a mislabeled file still parses. A CFF-based OTF is first redrawn as a TrueType font with quadratic curves. That TrueType data is then packed with Google's WOFF2 encoder. The result is a valid WOFF2, but the outlines inside it are TrueType, not PostScript.
In our tests, the glyph count, every mapped character and every advance width came through unchanged, so spacing matches the original except where text relied on ligatures or other substitutions. GPOS kerning and mark positioning survive. So do the name records for family, style, copyright and license, and the embedding-permission flag. TrueType hinting is kept when a TrueType-flavored OTF has it; PostScript hints from a CFF font are not carried over.
Some data is removed. The GSUB table is dropped, and it takes ligatures, small caps, stylistic sets and contextual alternates with it. Losing GSUB also breaks the shaping that Arabic, Devanagari and other complex scripts need. GDEF, STAT, extended name records, color tables and vertical metrics are dropped too, and variation axes are not kept, so a variable font does not stay variable. Converting cubic CFF curves to quadratic ones gives a close approximation, not an exact copy.
This suits web developers moving a licensed desktop font onto their own site, and theme builders replacing a hosted font service. It also suits anyone who wants a WOFF2 without installing the woff2 tools on Linux. If you searched for OTF to WOFF and WOFF2 together, note that WOFF2 alone covers current browsers. Our WOFF output is not compressed, so it is only worth adding for very old browsers.
How to convert OTF to WOFF2 for your website
- Confirm that your font license allows web embedding. Conversion copies the font's embedding flag unchanged and does not alter what the license permits.
- Gather single .otf files. An .otc collection is refused at upload, so extract its individual fonts first. If you only have a variable font, export the static styles you need.
- Drop the OTF files into the converter above. Without an account you can send up to 10 fonts of up to 50 MB each in one batch. Signing in raises the per-file limit to 100 MB.
- Start the conversion. Time depends mostly on the font's size: a full CJK font with tens of thousands of glyphs can take several minutes, and conversions stop after 12 minutes.
- Download each WOFF2 file within about 4 hours. Reference it in your @font-face rule with format('woff2').
- Preview the font on your page. Pay attention to any text that relied on ligatures, alternates or complex-script shaping.
What this OTF to WOFF2 converter does
- Detects the font by content The converter reads the file signature, so it recognizes CFF-based and TrueType-flavored OTF files correctly even if the extension is wrong.
- Google WOFF2 encoder with Brotli Output is written by Google's WOFF2 encoder. In our tests the WOFF2 was about 65% smaller than the uncompressed TrueType version of the same font.
- Kerning and mark positioning kept The GPOS table is carried into the WOFF2, so kerning pairs and mark-positioning data are kept. GDEF is dropped, so check accented and stacked marks after converting.
- Same characters and spacing Every mapped code point and every advance width is preserved, so spacing matches the original OTF, except in text that relied on ligatures, alternates or complex-script shaping, which are dropped.
- License and embedding data untouched Copyright, license description and license URL records are kept, and the embedding-permission flag is copied exactly as it was.
- Several fonts per batch Convert a whole family at once: up to 10 files per batch without an account, 25 on Plus and 50 on Pro. Each WOFF2 is downloaded individually.
Video Tutorial
Converting OTF to WOFF2 has never been easier! Quick tutorial 🚀 🔗 https://miconvert.com/en/otf-to-woff2?utm_source=youtube&utm_medium=social&utm_campaign=otf-to-woff2 ⏱️ Chapters: 0:00 Let's go! 0
OTF to WOFF2 questions
Can you convert OTF to WOFF2 online without installing anything?
Yes. Upload the .otf here and download the .woff2 when it is ready. The conversion is free, it runs on our server, and no account is needed for files up to 50 MB.
Will ligatures and stylistic sets still work in the WOFF2?
No. The GSUB table is dropped, so ligatures, small caps, stylistic sets and contextual alternates stop working, and complex scripts such as Arabic or Hindi will not shape correctly. If you need those features, use one of the command-line tools described below; they keep GSUB.
How do I convert OTF to WOFF2 on the command line or Linux?
Install Google's woff2 tools. They are packaged as woff2 on many Linux distributions, and the source is on GitHub. Then run woff2_compress font.otf, which writes font.woff2 beside the original. With Python, install fonttools and brotli and run fonttools ttLib.woff2 compress font.otf. Both tools keep the original CFF outlines and all OpenType features.
Does the WOFF2 keep the PostScript (CFF) outlines of my OTF?
No. CFF outlines are redrawn as quadratic TrueType curves, which match the shapes very closely but not exactly. PostScript hints are not carried over, so the WOFF2 from a CFF font is unhinted. That can affect how small text renders on some screens.
What happens to variable or color OTF fonts?
Neither type survives intact. Variation tables are not kept, so a variable font loses its axes, and color tables such as COLR and CPAL are dropped. Export the static instances you need, or keep the original file for color glyphs.
Why did my OTF fail to convert or time out?
Failed to parse source font usually means the file is damaged, is not really a font, or is a collection. Re-export it from the font editor or download it again from the foundry. A timeout means the font hit the 12-minute limit, which typically happens with full CJK fonts. Subset the font first, for example with pyftsubset from fontTools, keeping only the characters your site uses.
Can I convert a whole font family at once?
Yes. Select every style at once, up to your plan's batch limit listed above. Each converted font gets its own download button; there is no combined ZIP. Fonts are not eligible for the pay-once large-file option.
What happens to my font files after conversion?
Your font is sent over HTTPS to our server and converted there. The uploaded OTF is deleted as soon as the conversion finishes. The WOFF2 can be downloaded for about 4 hours, then it is deleted automatically. The download link is a random token that is not single-use, so anyone you share it with can use it until it expires.