🎨 Web Font CSS Generator
Generate Google Fonts import code, @font-face rules, and complete font-family CSS declarations.
CSS @import
HTML <link>
font-family
What Is This?
- Generate optimized @font-face CSS declarations
- Configure font-display, unicode-range, and format options
- Supports WOFF2, WOFF, and TTF font files
- Proper fallback chain setup included
- Essential for self-hosting web fonts
How to Use
- Select or upload your web font files (WOFF2, WOFF, TTF)
- Configure font-family name, weight, and style
- Set font-display strategy — swap, fallback, optional
- Specify unicode-range for subsetting if needed
- Copy the generated @font-face CSS declaration
Use Cases
- Self-hosting Google Fonts for GDPR compliance and performance
- Generating optimized @font-face declarations for custom fonts
- Configuring font-display for better loading performance
- Setting up unicode-range subsetting for multilingual sites
- Building proper CSS for variable font implementations