Font Converter
Turn a web font (WOFF or WOFF2) into a TTF or OTF you can install, or a TTF or OTF into WOFF2 or WOFF for a website, and get the @font-face CSS for it, with the font in a file beside the CSS or built into it.
About this tool What it's for, how to use it and an example
What it's for
Change a font between the forms used on computers and on the web. WOFF and WOFF2 are compressed for websites but
can’t be installed on most computers; TTF and OTF can. This converts web fonts to installable ones and back, and
writes the CSS @font-face rule that loads a font on a web page.
For example, when a designer sends a brand font only as WOFF2 files, convert each to TTF to install it and use it in your documents, if its licence allows.
How to use it
Choose a font file, or drop it on the page: TTF, OTF, WOFF, WOFF2, or a TTC collection (its first font is used).
- Save as TTF or OTF saves an installable font: TTF for fonts with TrueType outlines, OTF for those with PostScript (CFF) outlines, whichever the font has.
- Save as WOFF2 saves the smallest web font, the one to use on a website; Save as WOFF saves an older, larger one that very old browsers also read.
- @font-face gives the CSS for the font, with its family name, weight (a range for a variable font) and style
filled in. Load the font from (remembered in this browser) chooses whether it points to a file beside the CSS
(the one you chose, or a WOFF2, WOFF, TTF or OTF made here, named after it), or has the font built into the CSS
as a WOFF2
data:address, which needs no extra file but makes the CSS much larger.
Example
Save this site’s own font from this address and open it:
https://toolbox.thoughtasylum.com/assets/fonts/montserrat.woff2
Save as TTF or OTF saves montserrat.ttf (77.7 KB), Save as WOFF saves montserrat.woff (31.7 KB), and
Save as WOFF2 saves montserrat.woff2 (27.7 KB), against the original WOFF2’s 25.9 KB. With The file you chose selected, the CSS is:
@font-face {
font-family: "Montserrat Thin";
src: url("montserrat.woff2") format("woff2");
font-weight: 500 600;
font-style: normal;
font-display: swap;
}
Good to know
A WOFF2 made here keeps each table as it is, without the extra glyph packing font tools use, so it’s a little larger than theirs (about 7% for the example); keep an original WOFF2 if you have one. Writing the first WOFF2 loads a 0.7 MB compressor. Converting doesn’t change the font’s outlines or its licence: check the licence allows installing or self-hosting it. A collection’s other fonts aren’t converted.
Guide: Getting a font ready for the web
@font-face
Built with The third-party code and data this tool uses, and their licences
This tool runs on the following open-source work, copied onto this site and served from it:
- brotli.js (decoder), with base64-js 1.5.1 1.3.3
- Copyright
- Copyright Devon Govett; Copyright 2013 Google Inc. (the decoder, Apache-2.0); Copyright (c) 2014 Jameson Little (base64-js)
- Licence
- MIT License and Apache License 2.0
- Source
- github.com/devongovett/brotli.js
- brotli.js (encoder), with base64-js 1.5.1 1.3.3 writing WOFF2
- Copyright
- Copyright Devon Govett; Copyright 2013 Google Inc. (the Brotli encoder and decoder, Apache-2.0); Copyright (c) 2014 Jameson Little (base64-js)
- Licence
- MIT License and Apache License 2.0
- Source
- github.com/devongovett/brotli.js
- Notes
- Bundled with two small changes so it runs in a browser without fetching anything; the file's first comment lists them.
Every page also uses Montserrat (SIL Open Font License 1.1).
Everything the site uses is on Credits and licences.
Private: this tool runs in your browser. Nothing you type, paste or choose leaves this page.
Saved you a few minutes? Say thanks with a coffee.
Something wrong with this tool, or missing from it? Report a bug or suggest a feature.