Webfont Generator: Create WOFF Files and @font-face CSS

Get everything you need to use a font on your website. Drop one or several TTF, OTF or WOFF files and download a kit with optimized WOFF fonts, a ready-to-paste fonts.css with the correct @font-face rules and a demo page to preview every style.

or drop TTF, OTF or WOFF fonts here

Private: your files are processed in your browser and never uploaded.

How to create a web font kit

  1. Select your font files (TTF, OTF or WOFF). Add all the weights and styles of a family at once.
  2. Optionally type the family name, choose the font-display value and whether to include the TTF/OTF as a fallback.
  3. Press Generate web font kit and download the ZIP. Copy the fonts folder and fonts.css to your site.

What is in the kit?

FilePurpose
fonts/*.woffCompressed web fonts, supported by every browser
fonts/*.ttf or .otfOptional fallback copies
fonts.css@font-face rules with family, weight, style and font-display
demo.htmlA preview of every style with sample text and CSS snippets

How to use it

  1. Upload the fonts folder and fonts.css to your website.
  2. Add <link rel="stylesheet" href="fonts.css"> to the head of your pages (or paste the CSS into your stylesheet).
  3. Use the font in your CSS, for example font-family: "Inter", sans-serif;.

Families, weights and styles

When you add several files of the same family (Regular, Bold, Italicโ€ฆ), the generator reads each fontโ€™s weight and style from its internal tables and writes one @font-face rule per style under the same family name. Your CSS can then simply use font-weight: 700 or font-style: italic and the browser picks the right file.

font-display

swap (the default) shows text immediately with a fallback font and swaps to your font when it loads, which avoids invisible text and helps Core Web Vitals. optional is even faster on slow connections; block waits briefly for the font.

Licensing

Only use fonts on your website if the license allows web embedding. Open-source fonts such as those under the SIL Open Font License can be used freely.

The fonts are processed in your browser and never uploaded. Need a single conversion? Try TTF to WOFF or WOFF to TTF.

Tip: Drop all the styles of a family at once (Regular, Italic, Boldโ€ฆ): they are grouped under one family name automatically.

Key features of our Webfont generator tool

  • WOFF files for every browser
  • Ready-to-paste @font-face CSS
  • Weights and styles detected automatically
  • font-display option
  • Demo page included
  • No upload

Frequently asked questions

Which font formats can I use?

TTF, OTF and WOFF files.

Is WOFF2 generated?

No, the kit uses WOFF, which every browser supports. WOFF2 needs a Brotli compressor that is not available in browsers yet.

Do I need to include the TTF?

No. WOFF works in every current browser; the TTF fallback is optional for very old environments.

Can I use any font on my website?

Only if its license allows web embedding. Check the license or use open-source fonts.

Are my fonts uploaded?

No. The kit is generated in your browser.

More font converters you may need

Webfont generator is one of our free font converters. Every tool works in your browser, so your files stay private on any device.