Skip to content

OTF to WOFF2 Converter

Compress an OpenType font into a fast-loading web font.

How to convert OTF to WOFF2

Three steps, all in your browser.

  1. 1

    Add a font

    Drop a TTF, OTF, WOFF or WOFF2 file.

  2. 2

    Check the preview

    The converted font is loaded and shown with your own text.

  3. 3

    Download

    Save the font in its new format.

OTF to WOFF2 Converter: what to know

OTF fonts with CFF outlines are common among professional and open-source type families, and they work on the web once packed as WOFF2. WOFF2 compresses the font with Brotli, so it downloads faster, and every current browser supports it. This converter does the packing in your browser using Google's reference WOFF2 encoder compiled to WebAssembly, so the font is never uploaded.

The outlines aren't converted: WOFF2 stores CFF outlines as they are, along with their hinting, kerning and OpenType features, and the browser unpacks an identical font. TrueType fonts get extra savings from WOFF2's compact glyph encoding, which doesn't apply to CFF, so expect OTF fonts to shrink somewhat less than TTF fonts, though still noticeably.

As with any web font, make sure the font's license allows web embedding. Variable fonts with CFF2 outlines are packed as they are too, but font collections (.otc) aren't supported.

Popular uses

  • Self-hosting an OpenType family on a website
  • Replacing large OTF downloads in a web app with WOFF2
  • Packing a brand font for use in HTML emails or landing pages that support web fonts

Tips for the best result

  • Use one @font-face per weight: @font-face { font-family: "Brand"; src: url("brand-bold.woff2") format("woff2"); font-weight: 700; }.
  • Add font-display: swap so text stays visible while the font loads.
  • Preload only the one or two fonts used above the fold; preloading every weight slows the page down.
  • Subsetting a font to the characters you need shrinks it further; do that before converting.

Read how JustYourConvert works and our privacy details. Keep your original files and check a converted file before you replace anything.

Frequently asked questions

No. WOFF2 can hold either kind of outline, so the font keeps its original cubic CFF outlines and hinting. Only the packaging changes.

WOFF2 has a special compact encoding for TrueType outlines but stores CFF outlines as they are, relying on Brotli alone. CFF data is already compact, so OTF fonts usually shrink less than TTF fonts do.

That depends on the font's license, not on the tool. Open-source fonts such as those under the SIL Open Font License can be converted and self-hosted freely. Commercial fonts often need a separate web license, so check the license that came with the font before using it on a website.

No. Every live tool on JustYourConvert opens and converts your files inside your browser, on your own device. Nothing is sent to our servers, and the result is saved straight from your browser.

Yes. Every tool is free, with no sign-up, no watermark and no daily limit. Clearly labeled ads keep it that way.

Only your device's memory. Because the work happens in your browser, very large files can be slow on phones and older computers. Each tool says its practical limit under the drop area.