Settings

The font

Drop a .ttf, .otf, .woff or .woff2 here It is read and converted in this tab. Nothing is uploaded.

How it works

FONTSWAP converts fonts between TTF or OTF, WOFF and WOFF2 in the browser. It reads WOFF2's transformed outlines and metrics back into an installable font, writes WOFF2 with Brotli, and checksums every table. The outlines themselves are not converted: a PostScript .otf stays PostScript. The font is not uploaded.

What changes, and what does not

TTF, OTF, WOFF and WOFF2 are one font in different wrappers. WOFF squeezes each table with zlib; WOFF2 squeezes them all together with Brotli and is the one to put on a website. Converting between them changes the wrapper and nothing inside: the outlines, the hinting, the character map, the kerning and the names come out as they went in.

What it does not do is convert the outlines themselves. A font with PostScript outlines (most .otf files) stays one, and is saved as .otf; a TrueType font is saved as .ttf. Renaming an .otf to .ttf changes nothing inside it. WOFF2 made here is valid and every browser reads it, but it comes out around a tenth larger than Google’s own compressor, which also rewrites the outlines to squeeze them further. Font collections (.ttc) are not handled.

To see what is inside a font, including what its licence allows, FONTLENS reads it.

Questions people ask about FONTSWAP

How do I convert TTF to WOFF2?

Drop the .ttf here, choose WOFF2 and save. The tables are compressed together with Brotli into a WOFF2 file every current browser reads. It comes out around a tenth larger than Google’s woff2_compress, which also rewrites the outline table before compressing it.

How do I turn a WOFF2 web font back into a TTF I can install?

Drop the .woff2 here and choose TTF (or OTF, for a font with PostScript outlines). WOFF2's rewritten outlines and metrics are put back as the specification sets out, every table is checksummed, and the result is an ordinary font file of the kind operating systems install. Check that the font’s licence lets you install it.

Can it convert OTF to TTF?

Not the outlines. An .otf with PostScript (CFF) outlines stays PostScript, and is saved as .otf, because turning its curves into TrueType’s is a different job that changes the shapes slightly. Renaming an .otf file to .ttf changes nothing inside it.

Will the converted font look the same?

Yes. Only the wrapper changes: the outlines, hinting, kerning, character map and names are the same tables, byte for byte where the format allows, and the tests compare every glyph with the original using fontTools.

Doing this often? OBSCURA Vector sets type with your fonts and turns it into outlines, on artboards with layers. Everything is US$5 a month or US$48 a year.