Font converter: TTF, OTF, WOFF and WOFF2

Convert fonts between TTF, OTF, WOFF and WOFF2, preview them with your own text and see their names, glyphs, variable axes and licence flags.

loading Font converter: TTF, OTF, WOFF and WOFF2
About this tool

How do I convert a font to WOFF2?

Drop a TTF, OTF, WOFF or WOFF2 file on this page, choose the format you want and download the result. WOFF2 is the format to serve on websites: every current browser supports it, and it is usually 30 to 50% smaller than a TTF. WOFF is the older web wrapper, TTF and OTF are the files that operating systems and design apps install. The page also shows what the font says about itself: family and full name, version, number of glyphs and mapped characters, outline type, variation axes of a variable font, colour tables, hinting, and the embedding permission its maker set.

Type your own text in the preview to check accents, symbols and sizes before converting, and see the converted font drawn by your browser too, which proves the new file loads. A ready @font-face rule comes with every result.

The containers are converted by code written for this page from the W3C WOFF 1.0 and WOFF 2.0 specifications. Reading WOFF2 undoes the glyf, loca and hmtx transforms that encoders apply; writing WOFF2 keeps every table exactly as it is inside one Brotli stream, so decoding gives back the same bytes. The tables themselves are never rewritten, which keeps kerning, ligatures, variable axes and colour data intact. Only one conversion changes outlines: PostScript (CFF) curves to TrueType for a .ttf file, done with the open source fonteditor-core reader, while every other table of the original is kept. Nothing is uploaded; the work runs in a background worker of your browser.

How to convert a font

  1. Open the page: IBM Plex Sans is loaded as an example, with its details and a preview.
  2. Drop your font on the drop area or choose it. Its details and the preview appear at once.
  3. Pick the target under convert to: .woff2, .woff, .ttf or .otf. For WOFF2, maximum compression saves a few more percent at the cost of time.
  4. Choose Convert. The result shows its size and how it compares with the original, plus a preview drawn with the new file.
  5. Choose Download, and copy the @font-face rule into your stylesheet.

Examples

A webfont from a desktop font

A brand font arrives as Brand-Regular.ttf of 180 KB. Convert to .woff2: the result is around 90 KB and the rule src: url("Brand-Regular.woff2") format("woff2") is ready to paste. Check the licence line first: some desktop licences do not cover web use.

An OTF that a program refuses

An old app only lists .ttf fonts and your font is a PostScript .otf. Convert to .ttf: the outlines are redrawn as TrueType curves, and the names, character map, kerning and ligatures are kept.

Installing a font downloaded from a website

You have only the .woff2 that a site serves. Convert it to .ttf or .otf to install it on your computer, if its licence allows. Variable fonts stay variable, with all their axes.

Errors and limits

  • "This is a font collection (.ttc or .otc)." Collections hold several fonts in one file and are not supported. Extract the font you need with a desktop font tool first.
  • "This is an Embedded OpenType (.eot) file." The old Internet Explorer format is not supported.
  • "This is a variable PostScript font (CFF2)." It converts to OTF, WOFF and WOFF2, but not to TTF.
  • "The font is damaged or incomplete." The file was cut or is not a font. Download it again.
  • Converting CFF to TrueType drops PostScript hinting; the shapes may differ by a unit or two from the cubic originals.
  • Subsetting (keeping only some characters) is not done here, and fonts above 40 MB are refused.

Frequently asked questions

Is this font converter free and is my font uploaded?

It is free, without an account, and the font never leaves your browser. The conversion runs on your device.

Is converting a font legal?

Conversion is a technical step; what you may do with a font depends on its licence. The page shows the embedding permission (fsType) and the licence text stored in the font, and warns when the maker marked it as restricted.

Does WOFF2 lose quality?

No. WOFF2 is lossless: the same outlines, metrics and features, only smaller to download.

Why is my .otf output the same as the TTF?

An .otf may hold TrueType or PostScript outlines. A TrueType font saved as .otf keeps its TrueType outlines; only the extension changes.

How do I use the converted font on a page?

Copy the @font-face rule shown with the result and upload the file next to your CSS. To embed it in the CSS itself, turn it into a data URI with Base64. Find the code point of a missing character with Unicode search.

Report a problem