Skip to content
Convertto

TTF to WOFF Converter

Convert TrueType (.ttf) fonts to Web Open Font Format (.woff).

TTF to WOFF Converter converts font files between TTF, OTF, WOFF, WOFF2, and Base64 CSS definitions locally in your web browser. Font data processing runs entirely on your device without transmitting files over the network.

Runs in your browser
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

What WOFF adds to a TTF

WOFF 1.0 wraps an existing sfnt font for web delivery. The W3C Recommendation defines a 44-byte header, a table directory, the font tables, then an optional extended metadata block and an optional private data block. Each table may be compressed individually with the zlib compress2() function. The font itself is untouched: the spec requires the same set of tables as the input font, and requires that a decoder restore them so the font displays identically.

Two things the wrapper buys that raw .ttf hosting does not. The container is font-specific, so a browser can reject a malformed file before handing it to the rasteriser, and the metadata block gives a foundry somewhere to state licensing and credits that travels with the file rather than sitting in a text file nobody reads.

WOFF or WOFF2?

WOFF2, for anything you actually serve. It compresses the whole font with Brotli instead of compressing each table with zlib, and it preprocesses glyf, loca and hmtx first so the compressor has less to work with. WOFF 1.0 is worth generating only as a fallback source for browsers that predate WOFF2 support, and on most sites that audience is now too small to justify the second file. Generate the primary with TTF to WOFF2 and add this one only if your analytics say you need it.

@font-face {
  font-family: 'Example Sans';
  src: url('/fonts/example-sans.woff2') format('woff2'),
       url('/fonts/example-sans.woff') format('woff');
  font-display: swap;
}

The browser takes the first entry whose format() it recognises, so WOFF2 is listed first and the WOFF line is only ever reached by an engine that cannot read the line above it.

Round-tripping

Because WOFF preserves table data rather than re-rendering outlines, unwrapping gives the font back unaltered, and WOFF to TTF does exactly that. The file will not always be byte-identical to the original: the spec makes the table directory rebuild in ascending tag order, and any unreferenced padding in the source is dropped when the WOFF is made. For a well-formed input font, with correct padding, correct checksums and no extraneous data between tables, the round trip preserves everything that affects rendering.

FormatOutline dataCompressionWhere it belongs
.ttf TrueTypeQuadratic curves in the glyf and loca tablesNoneDesktop installation, Android build pipelines, tools that only read glyf
.otf OpenType with PostScript outlinesCubic curves in a CFF or CFF2 tableNoneDesktop installation, print and design applications
.woff WOFF 1.0Whichever of the two the wrapped font already usedzlib, applied to each table separatelyA fallback source for browsers too old for WOFF2
.woff2 WOFF 2.0Whichever of the two the wrapped font already usedBrotli over the whole font, after a reversible transform of glyf, loca and hmtxThe format to actually serve on the web
.eot Embedded OpenTypeEither, wrapped in a Microsoft-specific containerOptional MicroType ExpressInternet Explorer 8 and earlier. A W3C Member Submission that never became a standard
.ttc / .otc collectionEither, with tables shared between several facesNone on its own, though WOFF2 can wrap a collectionShipping a whole family in one file, common for CJK fonts
TTF and OTF are two flavours of the same sfnt container. WOFF and WOFF2 are packaging placed around one of them, not a third kind of outline.

Frequently asked questions

Is my font file uploaded anywhere?

No, font conversion happens entirely in your browser using JavaScript.

What is the difference between OTF and TTF?

Both are OpenType fonts using the same sfnt container. A TTF stores glyph outlines as quadratic curves in the glyf and loca tables; an OTF stores them as cubic curves in a CFF or CFF2 table. The extension reflects which outline format the file uses, and the rasteriser decides by reading the version tag inside the file rather than the extension.

Is converting a font lossless?

Unwrapping WOFF or WOFF2 back to sfnt is defined to be reversible, so the table data comes back intact. Converting between outline formats, such as OTF to TTF, is not: cubic curves have to be approximated by quadratics, and hinting and variable-font axes do not carry over.

Am I allowed to convert a commercial font?

Often not. Many font licences forbid modification, web embedding or redistribution, and converting a font is a modification. The OS/2 table carries an fsType field in which the foundry declares its embedding permission. Check the EULA before converting a font you did not make.

Can I convert an EOT or TTC file here?

No. This tool accepts TTF, OTF, WOFF and WOFF2. EOT is a retired Microsoft container for Internet Explorer 8 and earlier, and TTC is a collection holding several faces in one file, which needs a different unpacking step.

How to use the ttf to woff converter

  1. 1Select your font file — the file stays on your device and is never uploaded.
  2. 2Press Run, then download the result when it is ready.

Sources & specifications

Embed this tool

Put the working ttf to woff converter on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More developer tools