Skip to content
ZeroServer.tools

CSS @font-face Generator

Generate CSS @font-face rules for self-hosted web fonts with all browser formats.

Font Settings

Font URLs

CSS Output

CSS @font-face Generator — self-host any web font

The CSS @font-face rule lets you serve custom fonts directly from your own server, avoiding third-party requests to Google Fonts or Adobe Fonts. WOFF2 is the most efficient format and is supported by all modern browsers — include WOFF as a fallback for older browsers. Set font-display: swap to render text immediately with a system fallback while the custom font loads, preventing invisible text (FOIT). Use unicode-range to subset the font to only the characters you need, reducing download size. For variable fonts (a single file supporting all weights), set font-weight: 100 900.

Private & free — this tool runs entirely in your browser.

Recommended: Kinsta Fast managed hosting — up to $500 + 10% recurring.affiliate

Related Design & CSS tools