TFT

CSS @font-face Generator

Upload your custom fonts and generate ready-to-use @font-face CSS declarations with optimal settings.

Font Settings
Upload Font Files

WOFF2 (recommended), WOFF, TTF, OTF, EOT, SVG

Font Preview

Upload a font file to preview

Generated CSS
/* Upload font files to generate CSS */
Best Practices
Use WOFF2: Best compression and browser support
font-display: swap: Prevents invisible text during loading
Preload critical fonts: Add <link rel="preload"> for above-the-fold text
Subset fonts: Remove unused characters to reduce file size

About @font-face

The CSS @font-face rule allows you to use custom fonts on your website by specifying the font family name and the location of the font file. This gives you complete control over typography beyond standard web-safe fonts.

Modern web fonts support multiple formats for cross-browser compatibility. WOFF2 offers the best compression and is supported by all modern browsers. Include multiple formats as fallbacks for older browser support.

Font File Formats

WOFF2
Best compression (30% smaller than WOFF). Supported by all modern browsers. Use as your primary format.
WOFF
Good compression, widely supported. Use as a fallback for older browsers that don't support WOFF2.
TTF/OTF
Desktop font formats. Larger file sizes but good fallback options for older browsers.
EOT/SVG
Legacy formats for IE8 and below (EOT) or old iOS (SVG). Rarely needed for modern web development.

Other Free Tools

Google Fonts Pairing Tool

Discover and preview harmonious Google Fonts combinations. Find perfect heading and body pairings. Free online font pairing tool.

Letter Spacing & Line Height Visualizer

Adjust and preview letter-spacing and line-height values for perfect typography rhythm. Free online type visualizer.

Fluid Typography Calculator

Create responsive font sizes using CSS clamp() for smooth scaling between breakpoints. Free online fluid typography generator.

Fluid Space Calculator

Generate clamp()-based responsive spacing that scales with viewport. Create fluid design systems. Free online fluid space calculator.

CSS Spacing Scale Generator

Generate consistent spacing and size scales for design tokens. Create 4px, 8px, 16px base scales. Free online spacing scale generator.

PX to REM Converter

Convert pixels to REM and EM units with configurable root font size. Generate accessible, scalable CSS. Free online px to rem converter.

Viewport Unit Converter

Convert between vw, vh, vmin, vmax, and px units. Generate responsive viewport-based CSS. Free online viewport unit converter.

Media Query Builder

Generate responsive CSS media queries visually. Pick breakpoints for mobile, tablet, and desktop. Free online media query generator.

CSS Grid Generator

Create CSS Grid layouts visually. Generate grid-template-areas, gap, and responsive breakpoints. Free online CSS Grid layout builder.

Flexbox Playground

Experiment with Flexbox properties interactively. Generate flex container and item CSS with live preview. Free online Flexbox learning tool.

CSS Minifier & Beautifier

Minify CSS to reduce file size or beautify/format compressed CSS. Free online CSS minifier and prettifier for web developers.

CSS Variable Extractor

Extract custom properties (CSS variables) from existing CSS code. Auto-generate :root declarations. Free online CSS variable extractor.

CSS Specificity Calculator

Calculate CSS selector specificity scores instantly. Understand cascade priority and debug style conflicts. Free online specificity calculator.

CSS Counter Generator

Create custom counters for ordered and unordered lists. Generate CSS counter-reset and counter-increment code. Free online CSS counter tool.

Print CSS Helper

Generate @print media query boilerplate for printer-friendly stylesheets. Free online print CSS generator.

Scroll Snap Builder

Configure CSS scroll-snap properties for smooth scrolling sections. Generate scroll-snap-type and alignment code. Free online scroll snap generator.

CSS Filter Generator

Apply blur, brightness, contrast, hue-rotate, and more filters visually. Generate CSS filter code instantly. Free online CSS filter generator.

CSS Gradient Generator

Create linear, radial, and conic gradients with live preview. Generate CSS gradient code for backgrounds and UI. Free online gradient maker.

CSS Mesh Gradient Generator

Create stunning multi-point mesh gradients with smooth color transitions. Generate CSS and SVG mesh gradients. Free online mesh gradient tool.

CSS Pattern Generator

Generate repeating patterns — stripes, dots, checkerboard, waves — using CSS and SVG. Free online CSS pattern generator for backgrounds.

CSS Background Noise Generator

Generate subtle noise and grain textures using CSS and SVG filters. Add depth and texture to backgrounds with this free online CSS noise generator.

CSS Border Radius Generator

Create asymmetric border-radius values with live preview. Generate organic, smooth corner shapes for modern UI design. Free online border radius tool.

CSS Box Shadow Generator

Create multi-layer box shadows with blur, spread, and inset options. Generate beautiful shadows for buttons, cards, and UI elements. Free online CSS shadow tool.

Glassmorphism Generator

Create glassmorphism effects with backdrop-filter, blur, and transparency. Generate modern frosted glass CSS. Free online glassmorphism generator.

Neumorphism Generator

Create soft UI neumorphic effects with subtle shadows and highlights. Generate modern soft design CSS. Free online neumorphism generator.

CSS Button Generator

Design beautiful buttons with hover effects, gradients, and shadows. Generate production-ready CSS button styles. Free online CSS button maker.

CSS Loader Generator

Create pure CSS loading spinners, dots, and bars. Customize size, color, and animation speed. Free online CSS loader generator.

CSS Animation Generator

Create CSS keyframe animations with live preview. Generate smooth, performant animations for web projects with customizable easing, duration, and iteration. Free online CSS animation builder.

CSS Transition Previewer

Preview and compare CSS transition easing functions. Test built-in and custom cubic-bezier curves. Free online transition previewer.

Cubic Bezier Editor

Visually create custom cubic-bezier easing functions. Generate smooth, natural animations. Free online cubic-bezier editor for CSS transitions.