How to use the Webfont Generator
- Drop one or more TTF or OTF files on the box. Add every weight of a family together.
- Check the license note on each font. Choose your output formats and, if you like, the characters to keep.
- Confirm that you have the right to convert the font, then click Generate webfonts.
- Compare the sizes, test the preview and click Download ZIP. Upload the
fontsfolder and add the CSS to your site.
Check your font license first
Fonts are software, and their licenses decide what you can do with them. Many commercial licenses cover desktop use only, or charge separately for web use, and some forbid converting the file at all. That can apply even when you bought the font. Open licenses such as the SIL Open Font License usually allow web use, but they have their own conditions. Read your license before you convert. devpack doesn’t verify licenses, and you’re fully responsible for how you use your fonts and the files you create.
Which font format should I use?
WOFF2 is the right choice for almost every website. It has the best compression and works in all modern browsers. Add WOFF only if you need to support much older browsers. TTF and OTF are desktop formats and are usually far larger.
What is font subsetting?
A font can contain thousands of characters your site never shows. Subsetting removes them, which can cut the file size dramatically and speed up your pages. When you choose character sets, the CSS also gets a unicode-range, so browsers download the font only when a page needs it. Keep every language your site uses, because removed characters fall back to another font.
What’s in the ZIP?
- A
fontsfolder with your converted files. stylesheet.csswith one@font-facerule per font, including weight and style.demo.html, a page that shows each font working.FONT-INFO.txt, with the copyright and license details each font reports.
Expert options
- Variable fonts: narrow an axis, remove it, or create static weights such as 400 and 700. The CSS gets the right weight range.
- OpenType features: keep the standard set, keep them all, or tick exactly the ones you want.
- Vertical metrics: match line height across platforms, or set your own values.
- Matched fallback: adds a resized system font so that text moves less when your webfont loads, which helps your layout shift score.
- Code: get
@font-facerules, a usage snippet, preload tags or Tailwind CSS setup.
Which font-display value is best?
swap shows text in a fallback font right away, then swaps to your font when it loads. optional avoids that swap and layout shift, but a slow connection may never show your font. To speed things up further, preload your main font with a link rel="preload" tag and test the page with the Page Speed Test.
Using webfonts in Webflow
Download the WOFF2 files and upload them under Site settings → Fonts → Custom fonts. Webflow creates the CSS for you. Need custom code in your project? The HTML & CSS to Webflow tool can help.
Also searched as: web font generator, font squirrel alternative, font face generator, ttf to woff2, otf to woff2, font subsetter, convert font to webfont, font-face css generator.
Tools that pair well with the Webfont Generator
- Image Compressor — Reduce photos and graphics by up to 90% with no visible quality loss, depending on the image and settings.
- CSS Minifier — Paste a stylesheet to shrink it instantly.
- CSS Button Styles — Pick from 24 animated CSS buttons: fills, borders, glows, shines and 3D presses.
- CSS Animation Generator — Design CSS animations on a real keyframe timeline.